The clear command clears the currently selected object, and is the scripting equivalent of the Clear menu item on the Edit menu.TAIL
Type the+TXT
Type the following into the Message Box:
select btn 1
copy
go to card 6
select fld 2
clear
pasteTAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Copy Command as <filena
Copy Card Commandfilena
Create Stack Commandmman
Cut Commandmand
Paste Commandmmand
Paste Card Commandand
Save [a] Copy as <filena@
me> Command
me> Command
me> Command
mINFO
Paste CommandPROP
popupnum
64bkgd
data
Paste CommandTAIL
+T+TXT
pasteADDD
The past+TXT
The paste command pastes the currently selected object, and is the scripting equivalent of the Paste menu item on the Edit menu. You must first select the object to paste it.TAIL
Type the+TXT
Type the following into the Message Box:
select btn 1
copy
go to card 6
select fld 2
clear
pasteTAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Clear Commandand
Copy Command as <filena
Copy Card Commandfilena
Create Card Commanddmman
Cut Commandmand
Paste Card Commandand
Save [a] Copy as <filena@
me> Command
me> Command
me> Command
nINFO
Paste Card CommandPROP
popupnum
65bkgd
data
Paste Card CommandTAIL
+T+TXT
paste cardADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
The paste card command pastes the currently buffered card.TAIL
e the+TXT
Type the following into the Message Box:
go to card 5
copy card
go to stack "backup"
paste card
The script copies card 5 into the "backup" stack.TAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Clear Commandand
Copy Command as <filena
Copy Card Commandfilena
Create Card Commanddmman
Cut Commandmand
Paste Commandmmand
Save [a] Copy as <filena@
me> Command
me> Command
me> Command
SoundFile PropertyPROP
popupnum
124bkgd
data
SoundFile PropertyTAIL
+TX+TXT
set the soundFile of <sound> to <pathname>ADDD
The soun+TXT
The soundFile property indicates the file name that contains the sound sample data and from which the sound objects gets sample data for the playback. If the sound data has been imported, this property is empty.
You can set the soundFile property either by using a script or by clicking on the Sound button in the Sound Info dialog box.
Notes:
Setting the soundFile of a sound to empty disassociates it from a sound file.TAIL
te a+TXT
Create a sound. Do not associate it with a sound file.
Locate a sound file you wish to associate with the sound. Now type the following statement into the Message Box, replacing the pathname shown with the full pathname of your sound file.
For Windows:
set the SoundFile of movie 1 to "c:¥sounds¥mysound.wav"
For Macintosh:
set the soundFile of sound 1 to
"Macintosh HD:Sound:My Sound"TAIL
Applies +TXT
/data
Applies to sounds
MOCELL10>LST
MOCELL10
MovieFile Propertyerty
EINFO
Blocking PropertyPROP
popupnum
11bkgd
data
Blocking PropertyTAIL
+T+TXT
set the blocking of <movie | path | sound>
to <boolean>ADDD
PURE+TXT
Note: The blocking boolean property is one possible value for the playStyle property of movies, paths, and sounds
When blocking is set to true, your movie, path, or sound plays synchronously. This means that all other scripts are suspended until the sound, movie, or path completes playback. When blocking is set to false, your movie, path, or sound plays asynchronously. This means that scripts continue to execute during the object's playback.
The blocking boolean property is one of the possible values of the playStyle property.
Notes:
If you are going to mix two or more sounds, the playStyle property of the sound must not be set to blocking, which means that blocking is set to false.TAIL
RE+TXT
/data
Applies to movies, paths, and sounds
PURE>LST
MOCELL10
ReverseOnReplay Propertyrty
PlayStyle Propertyrty
INFO
StreamArrived MessagePROP
popupnum
45bkgd
data
StreamArrived MessageTAIL
+T+TXT
on streamArrived
end streamArrivedADDD
The stre+TXT
The streamArrived message is sent to the movie object after a play command has been issued, when the stream of movie data has begun to arrive at the client computer.
One useful application of this message is to display a
please wait" graphic up until the time the movie starts streaming, and thus begins playback.TAIL
a+TXT
Create a bitmap that displays the message
please wait". Create a button Play and type the following handler into its script:
on mouseUp
show cd bmp 1
play cd mov 1
end mouseUp
Create a movie object, associate with a movie file and type the following handler into the movie's script:
on streamArrived
hide cd bmp 1
end streamArrivedTAIL
t to +TXT
/data
Sent to moviesTAIL
MOCELL10>LST
MOCELL10
Play File Command
SystemColors FunctionPROP
popupnum
60bkgd
data
SystemColors FunctionTAIL
+T+TXT
the systemColors
systemColors()ADDD
The syst+TXT
The systemColors() function returns the maximum number of colors for the screen. Possible values returned by systemColors are:
2 = colorBW
16 = color16
256 = color256
thousands = color16bits
millions = color24bits
gray = colorgray (16 grays)TAIL
To find +TXT
To find the number of colors available for your screen, type the following function in the Message Box and press Enter.
systemColors()TAIL
ELL10>LST
MOCELL10
There are no related topics
'INFO
TopLeft PropertyPROP
popupnum
138bkgd
data
TopLeft PropertyTAIL
+TX+TXT
set the topLeft of {<object> | {card | cd}
<window>} to <x,y>ADDD
The topLeft property determines the offset to the top-left corner of an imaginary rectangle surrounding an object. The object's topLeft position is measured in pixels and is expressed as an x, y screen coordinate where x and y are positive integers representing pixels. The offset is measured from the top-left corner of the card or, for the window, from the top-left corner of the screen.
Notes:
You use the topLeft property to determine or change the value of items 1 and 2 of the rectangle property (left, top, right, bottom) .
Changing the topLeft property does not change the size of the object.TAIL
Notes:
You use the topLeft property to determine or change the value of items 1 and 2 of the rectangle property (left, top, right, bottom) .
Changing the topLeft property does not change the size of the object.TAIL
PURE+TXT
/data
Applies to all card objects, backgrounds, card windows, message box, toolbar
PURE>LST
MOCELL10
Bottom Propertyperty
BottomRight Propertyerty
Left Propertyrtyy
Location (Loc) Property
Rectangle Propertyerty
Right Propertyoperty
Top Propertyerty
$INFO
TitleBar PropertyPROP
popupnum
136bkgd
data
TitleBar PropertyTAIL
+TX+TXT
set the titleBar to <boolean>ADDD
PURE+TXT
The titleBar property determines the visibility of the title bar located at the top of the window. When the titleBar is set to true, it is displayed. If the titleBar is set to false, it is invisible. The visibility of the title bar can also be controlled using the show and hide commands.TAIL
PURE+TXT
Place the following handler in the script of a stack whose titlebar you wish to hide upon opening of the stack. The handler saves the original status of the titlebar and then resets the titlebar upon exiting the stack.
on openStack
global saveTitlebar
put the titleBar into saveTitlebar
set the titleBar to false
end openStack
on closeStack
global saveTitlebar
set the titleBar to saveTitlebar
end closeStackTAIL
PURE+TXT
/data
Applies to titlebar
PURE>LST
MOCELL10
Hide {screen element} C
Show {screen elements} @
ommand
Command
CRDH- (minus) operator
CRDH-- (comment symbol)
CRDH/ (division) operator
nolibrarycard
field id 1data
This stack must be libraried in order to function correctly. If you have not done so, place this stack in the Oracle Media Objects library folder and restart Oracle Media Objects.TAIL
OKSCRP
on mouseUp
dismiss
end mouseUp
sINFO
ColorDepth PropertyPROP
popupnum
27bkgd
data
ColorDepth PropertyTAIL
+T+TXT
set the colorDepth of <card | background |
bitmap> to {blackWhite | color16 | color256 |
thousands | millions | DYUV | MPEG}
| thousands | millionsADDD
E+TXT
The colorDepth property determines the parameters of the graphic palette for backgrounds, cards, and bitmaps.
Possible values for colorDepth are blackWhite, color16, color256, thousands, millions, DYUV, and MPEG. Not all monitors or graphics cards support 256, thousands, or millions of colors, or DYUV. MPEG applies only to cards and backgrounds.
Notes:
The specified bitmap must contain at least one painted pixel for changes to the value of colorDepth property to take effect.TAIL
PURE+TXT
Type the following into the Message Box and press Enter:
set the colorDepth of card id 2777 to blackWhiteTAIL
RE+TXT
/data
Applies to backgrounds, bitmaps, cards
PURE>LST
MOCELL10
BackColor Propertyrty
ForeColor Propertyrty
InkColor Propertyerty
TextColor Propertyerty
tINFO
ColResize PropertyPROP
popupnum
25bkgd
data
ColResize PropertyTAIL
+T+TXT
set the colResize of <dataSheet | pickList>
to <boolean>ADDD
PURE+TXT
The colResize property determines whether the rows and columns of a dataSheet or pickList can be resized in Part mode with the mouse. The default value is true (rows and columns can be resized).TAIL
PURE+TXT
/data
Applies to datasheets, picklists
PURE>LST
MOCELL10
CantModify Propertyerty
qCRDHcolnames property
rCRDHcolordepth property
sCRDHcolresize property
kCRDHclosecard message
pCRDHcoldelim property
uCRDHcolumn tabular chunk
Copy CommandPROP
popupnum
25bkgd
data
Copy CommandTAIL
+T+TXT
copyADDD
The copy+TXT
The copy command copies the currently selected object, and is the equivalent of the Copy menu item on the Edit Menu.TAIL
Type the+TXT
Type the following into the Message Box:
select btn 1
copy
go to card 6
select fld 2
clear
pasteTAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Clear Commandmand
Copy Card Commandfilena
Create Stack Commandmman
Cut Commandmand
Paste Commandmmand
Paste Card Commandand
Save [a] Copy as <filena@
me> Command
me> Command
xINFO
ColWidth PropertyPROP
popupnum
26bkgd
data
ColWidth PropertyTAIL
+T+TXT
set the colWidth of <pickList | dataSheet>
to <integer>ADDD
PURE+TXT
The colWidth property allows you to set the width property of all columns of a pickList or dataSheet simultaneously. The colWidth is a positive integer that sets the width in pixels of every column. The default width of columns is 150 for pickLists, 100 for dataSheets.
The colWidth property is returned as the width in pixels of the first (left) column in a pickList or dataSheet.TAIL
PURE+TXT
Create a pickList and name it "test". Type the following in the Message Box and press Enter:
set the colWidth of pickList "test" to 35TAIL
PURE+TXT
/data
Applies to datasheets, picklists
PURE>LST
MOCELL10
Width Propertyrtyy
RowHeight Propertyerty
yINFO
CommandKey FunctionPROP
popupnum
9bkgd
data
CommandKey FunctionTAIL
++TXT
the commandKey
commandKey()ADDD
URE+TXT
The commandKey function checks whether the Ctrl key is currently pressed (the Command key on the Macintosh). If the Ctrl key is pressed, the function returns down; if the Ctrl key is not pressed, the function returns up. CommandKey can be abbreviated cmdkey.
The commandKey function does not perform the action of pressing the Ctrl key; it simply returns a string stating whether the key is currently pressed.
Notes:
The Command key on the Macintosh keyboard and the Ctrl key on the PC keyboard are equivalent. However, to ensure compatibility across platforms it is necessary to use the commandKey function when scripting.TAIL
PURE>LST
MOCELL10
OptionKey Functiontion
ShiftKey Functiontion
zINFO
Compact Stack CommandPROP
popupnum
23bkgd
data
Compact Stack CommandTAIL
+T+TXT
compact stackADDD
PURE+TXT
The compact stack command retrieves disk space that is not being used by the Oracle Media Objects application. Compact stack removes any fragmentation in the file that the stack occupies on disk.
The Stack Info dialog box displays how much free space can be retrieved by compacting the stack.TAIL
PURE>LST
MOCELL10
There are no related topics
wCRDHcolwidth property
xCRDHcommandkey function
yCRDHcompact stack command
}INFO
Compound FunctionPROP
popupnum
10bkgd
data
Compound FunctionTAIL
+T+TXT
compound (<rate>, <periods>)
the compound of {<rate>, <periods>}ADDD
The comp+TXT
The compound mathematical function performs compound interest calculations on the future value of 1. The rate is the interest rate per period, and periods is the number of periods.TAIL
Type the+TXT
Type the following in the Message Box and press Enter, where <principal amount> is a value:
<principal amount> * compound (.20,5)TAIL
MOCELL10>LST
MOCELL10
Annuity Functiontion
~INFO
Contains OperatorPROP
popupnum
7bkgd
data
Contains OperatorTAIL
++TXT
<string expression> contains
<sub-string expression>ADDD
The cont+TXT
The contains operator determines whether a specified string includes a specified substring. The contains operator is case-insensitive, that is, it compares the string regardless of case.
Contains returns true if the second operand is a substring of the first, and false otherwise.TAIL
he+TXT
Type the following lines in the Message Box and press Enter after each:
put "Happy Birthday!" into A
put "birthday" into B
A contains B
Oracle Media Objects returns true in the Message Box because "birthday" is a substring of "Happy Birthday!"
Create a field and name it "MyBirthday".
Type "Happy Birthday" in field "MyBirthday". Then type the following line in the Message Box and press Enter:
field "MyBirthday" contains "birthday"TAIL
MOCELL10>LST
MOCELL10
Within Operatortion
Is [Not] In Operator
DontPrint PropertyPROP
popupnum
34bkgd
data
DontPrint PropertyTAIL
+T+TXT
set the dontPrint of <object> to <boolean>ADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
When set to true, the dontPrint object property prevents the object from printing when its card is printed.
Setting the dontPrint property to true for cards and backgrounds prevents the printing of their respective paint layers.TAIL
Create a+TXT
Create a new card and name it
Print". Use the paint tool to create a circle on the card. Type the following into the Message Box:
set the dontPrint of card "Print" to true
select "Print Card" under the Fill menu.
Your "Print" card will print with no image.TAIL
plies +TXT
/data
Applies to all objects, backgrounds, cards, stacks
MOCELL10>LST
MOCELL10
CantModify Propertyerty
Contiguous PropertyPROP
popupnum
28bkgd
data
Contiguous PropertyTAIL
+T+TXT
set the contiguous of <path> to <boolean>ADDD
The cont+TXT
The contiguous property determines whether or not the legs of a path are connected. If the contiguous property for a path is set to true, the legs remain connected even if they are moved, or if the startPoints or endPoints change; if the contiguous property is set to false, the legs may be moved around independently of one another.
Notes:
It is possible to specify a particular leg of a path when setting the contiguous property; however, this changes the contiguous property for the entire path rather than just the leg you specified.TAIL
+TXT
/data
Applies to paths
MOCELL10>LST
MOCELL10
There are no related topics
Convert CommandPROP
popupnum
24bkgd
data
Convert CommandTAIL
+T+TXT
convert <container> to <datetype>
[and datetype]
<datetype> = {seconds, dateitems,
[short | long | abbr | abbrev | abbreviated] date,
[short | long | abbr | abbrev | abbreviated] time}ADDD
E+TXT
The convert command converts the data stored in a container from one format to another.TAIL
PURE+TXT
Create a field and type a number in it. Type the following into the Message Box and press Enter:
convert fld 1 to long date
Now try:
convert fld 1 to dateitemsTAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
Date Functiontion
}CRDHcontains operator
~CRDHcontiguous property
CRDHcontrollervisible property
DataScroll PropertyPROP
popupnum
33bkgd
data
DataScroll PropertyTAIL
+T+TXT
set the dataScroll of <pickList | dataSheet>
to <boolean>ADDD
URE+TXT
The dataScroll property determines whether the scrolling of a pickList or dataSheet is limited to the rows and columns that contain data. If dataScroll is true, the user will be able to scroll to the scrollLimit or to the last row or column that contains data, whichever is less. Note that you can still change the contents of empty rows or columns in your scripts. If dataScroll is false (the default), the user can scroll to the row or column determined by the scrollLimit property.TAIL
PURE+TXT
/data
Applies to datasheets, picklists
PURE>LST
MOCELL10
ScrollLimit PropertyertyADDD
@INFO
VisibleCols FunctionPROP
popupnum
68bkgd
data
VisibleCols FunctionTAIL
+T+TXT
the visibleCols of
<dataSheet | pickList | dataSheet>
dataSheet |ADDD
The visi+TXT
The visibleCols function returns the number of columns in a dataSheet or pickList or dataSheet that are entirely visible
es +TXT
/data
Applies to dataSheets, pickLists
MOCELL10>LST
MOCELL10
VisibleRows Function topics
CRDHexit to top control statement
CRDHexp function
CRDHexp1 function
CRDHfilled property
CRDHfind
CRDHflipinterval property
)CRDHmilliseconds (msecs) function
>CRDHmultifont property
TCRDHpass control statement
CRDHplaymuted property
CRDHproperties property
CRDHrepeat until
Copy Card CommandPROP
popupnum
26bkgd
data
Copy Card CommandTAIL
+T+TXT
copy cardADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
The copy card command copies the currently visible card, and is the scripting equivalent of the Copy Card menu item on the Edit menu.TAIL
Type the+TXT
Type the following into the Message Box:
go to card 5
copy card
go to stack "backup"
paste card
The script copies card 5 into the "backup" stack.TAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Clear Commandand
Save [a] Copy as <filena
Create Stack Commandmman
Cut Commandmand
Paste Card Command
Paste Card Commandand
Save [a] Copy as <filena@
me> Command
me> Command
CRDHconvert command
CRDHcopy command
CRDHcopy card command
Create Stack CommandPROP
popupnum
31bkgd
data
Create Stack CommandTAIL
+T+TXT
create stack <stackname>ADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
The create stack command creates a new stack with the specified name.
Notes:
Creating a new stack using the create stack command leaves you in the context of the current stack. In contrast, creating a new stack using the Object -> New -> Stack menu item places you in the context of the newly created stack.TAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Create Background Commandmand
Clear Commandand
Copy Card Commandfilena
Create Card Commanddmman
Cut Commandmand
Paste Commandmmand
Paste Card Commandand
Save [a] Copy as <filena@
me> Command
me> Command
CRDHrow tabular chunk
CRDHrowdelim property
CRDHrowheight property
CRDHreverseonreplay property
CRDHright property
CRDHrotation property
Create Background CommandPROP
popupnum
27bkgd
data
Create Background CommandTAIL
+T+TXT
create background <bgname>ADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
The create background command creates a new background with the specified name.
Notes:
Creating a new background using the create background command is equivalent to creating a new background using the Object -> New -> Background menu item command.TAIL
plies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Clear Commandand
Copy Card Commandfilena
Create Card Commanddmman
Create Stack Commandmman
Cut Commandmand
Paste Commandmmand
Paste Card Commandand
Save [a] Copy as <filena@
me> Command
me> Command
Create Card CommandPROP
popupnum
28bkgd
data
Create Card CommandTAIL
+T+TXT
create cardADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
The create card command creates a card with the same background as the currently visible card. This is the equivalent of the New Card menu item under the Object menu.TAIL
PURE+TXT
Type the following into the Message Box:
go to card 5
create card
This script creates a new card with the same background as card 5. The current location is card 6.TAIL
URE+TXT
/data
Applies to global
PURE>LST
MOCELL10
Clear Commandand
Copy Card Commandfilena
Cut Commandmand
Paste Card Command
Paste Commandmmandand
Save [a] Copy as <filena@
me> Command
me> Command
CRDHcreate background command
CRDHcreate card command
CRDHcreate command
CRDHcontrolpoint property
CRDHcos function
CRDHcreate menu command
Create Menu CommandPROP
popupnum
30bkgd
data
Create Menu CommandTAIL
+T+TXT
create menu <menu_name>ADDD
The crea+TXT
The create menu command creates an empty menu that appears in the Oracle Media Objects menu bar.
Once the menu has been created, the items in the menu may then be modified using the add menuItem command, or by setting the menuItems property. A submenu can be added to a menu item by issuing the add menu command.
The menu is created dynamically; it remains in the menu bar until delete menu has been issued, or the Oracle Media Objects session is terminated. To associate a menu with a particular stack or card, add the create menu command to the appropriate on openStack or on openCard handler.TAIL
the+TXT
Type the following into the Message Box and press Enter:
create menu "Colors"
Add the following handler to the script of a stack to associate a menu with a specific stack:
on openStack
create menu "Animals"
put "Sheep" & return & "Goats" & return
& "Pigs" into the_items
set the menuItems of menu "Animals"
to the_items
pass openStack
end openStackTAIL
pplies +TXT
/data
Applies to menus
MOCELL10>LST
MOCELL10
Add Menu Commandmand
Add MenuItem Commandmand
Delete {row/col} Command
MenuItems Propertyerty
Get CommandPROP
popupnum
49bkgd
data
Get CommandTAIL
T+TXT
get <source>ADDD
PURE+TXT
The get command takes a value from a source and places it in the global variable it.
get <source>
is the same as
put <source> into itTAIL
E+TXT
Type the following lines in the Message Box and press Enter after each:
get the time
Type the following lines in the Message Box and press Enter after each:
get the mouseLoc
These statements return the current location of the mouse as two values: the horizontal and vertical offsets from the top left corner of the current card.TAIL
PURE>LST
MOCELL10
Put Commandmand
Set Commanded Command
Cursor PropertyPROP
popupnum
31bkgd
data
Cursor PropertyTAIL
+T+TXT
set the cursor to {<cursornumber> |
<cursorname>}ADDD
The curs+TXT
The cursor property determines the shape of the pointer.
If you set the cursor to any value besides that pertaining to watch, the change will persist even after the current script ceases to execute.
The cursor shape can be set to any one of the following values:
_______________________________
Cursor Name: Cursor Number:
_______________________________
Advance 1366
Backup 1365
Beginning 1369
BigClock 1416
Browse 1201
Bucket 1161
Busy1 1001
Busy2 1002
Busy3 1003
Busy4 1004
BusyPause1 1373
BusyPause2 1374
BusyStop1 1371
BusyStop2 1372
Check 1408
CommandDot1 1068
CommandDot2 1069
CornerBL 1382
CornerBR 1383
CornerTL 1380
CornerTR 1381
Count1 1051
Count10 1060
Count2 1052
Count3 1053
Count4 1054
Count5 1055
Count6 1056
Count7 1057
Count8 1058
Count9 1059
Cut 1405
Document 1404
Dropper 1166
End 1370
Eraser 1160
Eye 1411
Face 1412
FastForward 1368
FastRewind 1367
Feet 1415
FingerDown 1079
FingerLeft 1081
FingerRight 1080
FingerTopLeft 1083
FingerTopRight 1082
FingerUp 1078
HairCross 1162
Hand 1165
HandDown 1088
HandDownClosed 1089
HandLeft 1092
HandLeftClosed 1093
HandRight 1090
HandRightClosed 1091
HandUp 1086
HandUpClosed 1087
Hexagon 1156
Hourglass1 1031
Hourglass10 1040
Hourglass2 1032
Hourglass3 1033
Hourglass4 1034
Hourglass5 1035
Hourglass6 1036
Hourglass7 1037
Hourglass8 1038
Hourglass9 1039
Info 1403
Lasso 1221
Lock 1406
MacPopup 1410
Magnifier 1167
Magnify 1417
Megaphone 1413
Move 1385
MoveHorizontal 1386
MoveVertical 1387
Movie1 1061
Movie2 1062
Movie3 1063
Movie4 1064
Movie5 1065
Movie6 1066
MovieClip 1375
No 1400
None 1199
Number1 1041
Number10 1050
Number2 1042
Number3 1043
Number4 1044
Number5 1045
Number6 1046
Number7 1047
Number8 1048
Number9 1049
Octagon 1158
Pause 1362
Pencil 1222
Pentagon 1155
Play 1360
PointerLeft1 1072
PointerLeft2 1073
PointerRight1 1070
PointerRight2 1071
PressLeft 1085
PressRight 1084
Question 1402
Record 1363
Rewind 1364
SplitHorizontal 1389
SplitVertical 1388
Spot 1409
Spray 1164
Square 1154
Star 1414
Stop 1361
StopSign 1401
TalkLeft1 1076
TalkLeft2 1077
TalkRight1 1074
TalkRight2 1075
TextBeam 1163
Triangle 1153
Unlock 1407
Watch 1010
Watch1 1011
Watch2 1012
Watch3 1013
Watch4 1014
Watch5 1015
Watch6 1016
Watch7 1017
Watch8 1018
World1 1021
World2 1022
World3 1023
World4 1024
World5 1025
World6 1026
World7 1027
World8 1028TAIL
Create a+TXT
Create a button and type the following handler into its script:
on mouseUp
set the cursor to watch
repeat until the mouseclick
end repeat
end mouseUpTAIL
/data
Applies to global
MOCELL10>LST
MOCELL10
BusyCursor Propertyerty
Is OperatorPROP
popupnum
10bkgd
data
Is OperatorTAIL
T+TXT
<expression> is <expression>
<expression> = <expression>ADDD
Oracle M+TXT
Oracle Media Objects provides two ways to compare for equality between two values, containers, fields, variables, texts, or numbers: the equal sign (=) and the mathematical operator is. Both return true or false depending on the results of the comparison.TAIL
Create a+TXT
Create a button called "test" with the following script:
on mouseDown
if the hilite of button "test" is true then beep 2
end mouseDown
Note that replacing the word "is" in this script with the equal sign produces the same result.TAIL
MOCELL10>LST
MOCELL10
Is [Not] In Operatorr
CRDHcreate stack command
CRDHcursor property
CRDHcurvetype property
CRDHcut command
INFO
Log2 FunctionPROP
popupnum
25bkgd
data
Log2 FunctionTAIL
+T+TXT
the log2 of <number>
log2(<number>)ADDD
This mat+TXT
This mathematical function calculates the base-2 logarithm of a number.TAIL
log2+TXT
put log2(10) into the message box
The value 3.321928 is returned.
MOCELL10>LST
MOCELL10
Exp2 Functiontion
7INFO
Untrace CommandPROP
popupnum
105bkgd
data
Untrace CommandTAIL
+TX+TXT
untraceADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
The untrace command deactivates the script debugger. The debugger is active by default each time Oracle Media Objects is invoked. Performance is enhanced slightly while the script debugger is inactive.TAIL
ies +TXT
/data
Applies to script debugger
MOCELL10
Breakpoint Commandmand
Untrace Commandnd
dINFO
Or OperatorPROP
popupnum
13bkgd
data
Or OperatorTAIL
<boolean> or <boolean>ADDD
The logi+TXT
The logical or operator returns true if either or both of its operands are true, and false otherwise.TAIL
epeat u+TXT
repeat until the mouse is up or item 1
of the mouseloc > 200
end repeat
MOCELL10>LST
MOCELL10
And Operatorator
Not OperatorOperator
0INFO
Mouse FunctionPROP
popupnum
32bkgd
data
Mouse FunctionTAIL
+T+TXT
the mouse
mouse()ADDD
The mous+TXT
The mouse function returns the constant up if the mouse button is not being pressed and the constant down if it is being pressed. With this function, you can write scripts that simulate clicking and dragging.TAIL
on mouse+TXT
on mouseDown
repeat while the mouse is down
set the location of me to the mouseLoc
end repeat
end mouseDown
LL10>LST
MOCELL10
Click At Commandd
ClickLoc Functiontion
MouseClick Functiontion
MouseDown Messagesage
MouseUp Messagesage
Delete Card CommandPROP
popupnum
36bkgd
data
Delete Card CommandTAIL
+T+TXT
delete card [noprompt]ADDD
The dele+TXT
The delete card command deletes the specified card and sends the deleteCard message. You must specify the current card. To delete a card other than the current card, you must first navigate to that card:
go card 2
delete card
The delete card command functions only on the current card.
The optional noprompt flag can be used to suppress the warning, "Do you want to delete the background along with this card?", that pops up if you are trying to delete the last card of a background.
Notes:
There is no way to undo a deletion!TAIL
Applies +TXT
/data
Applies to cards
MOCELL10>LST
MOCELL10
Clear Commandand
Save [a] Copy as <filena
Cut Commandmand
Paste Commandmmand
Paste Card Commandand
Put Commandmand
me> Command
CRDHdelete menu command
CRDHdelete {row/col} command
CRDHdeletebackground message
Delete {row/col} CommandPROP
popupnum
38bkgd
data
Delete {row/col} CommandTAIL
+T+TXT
delete {row | col | cell} <number> [to <number2>]
{of | in} {<pickList> | <dataSheet>}ADDD
PURE+TXT
The delete row/col command deletes tabular chunks from dataSheets and pickLists. If a single row or column is to be deleted, <number> identifies that row or column. If a range of rows or columns is to be deleted, <number> identifies the beginning of the range and <number2> identifies the end of the range to be deleted. Rows and columns are numbered starting with 1.
When a column is deleted, the user
defined name and the info for that column are deleted as well. The colNames for subsequent columns shift along with the data, as do column properties such as info, textColor, textAlign, and width.
The tabular chunk expressions are cell, column or col, and row.
Notes:
There is no way to undo a deletion!TAIL
URE+TXT
/data
Applies to tabular chunks in datasheets and picklists
PURE>LST
MOCELL10
There are no related topics
CRDHrepeat while
CRDHrepeat with
CRDHreset message command
Delete <object> CommandPROP
popupnum
35bkgd
data
Delete <object> CommandTAIL
+T+TXT
For all objects:
delete <object>
For paths:
delete leg <number> <of | in> <path>ADDD
E+TXT
The delete <object> command deletes the specified object and sends the deleteObject message.
For paths, the delete <object> command allows you to delete a specific leg from a path. <number> identifies the specific leg number along a designated path.
Notes:
There is no way to undo a deletion!TAIL
URE+TXT
/data
Applies to all objects
PURE>LST
MOCELL10
Put Commandmand
EndPoints PropertyPROP
popupnum
41bkgd
data
EndPoints PropertyTAIL
+T+TXT
the endPoints of <shape>ADDD
Using th+TXT
Using the endPoints property, you can get the four values that define the end points of a line
style shape. The first two values returned are the coordinates of the start point of the line shape. The second two values returned are the coordinates of the end point of the line shape.
The endPoints property is read
only.TAIL
Applies +TXT
/data
Applies to line
style shapes
MOCELL10>LST
MOCELL10
There are no related topics
DiskSpace FunctionPROP
popupnum
13bkgd
data
DiskSpace FunctionTAIL
+T+TXT
the diskSpace
diskSpace ()ADDD
PURE+TXT
The diskSpace function returns the amount of total disk space available on the current volume in bytes.
Notes:
Check the diskSpace before performing an operation that takes up space on the disk. If diskSpace is smaller than the operation requires, the user can be alerted that the operation cannot be performed.TAIL
URE+TXT
Create a button and place the following handler in its script:
on mouseUp
if the diskSpace < 100000
then answer "Your disk is getting full"
end mouseUp
To find the amount of disk space you currently have, type the following into the Message Box and press Enter:
the diskSpace
PURE>LST
MOCELL10
There are no related topics
AINFO
VisibleRows FunctionPROP
popupnum
69bkgd
data
VisibleRows FunctionTAIL
+T+TXT
the visibleRows of
<dataSheet | pickList | dataSheet>
dataSheet |ADDD
The visi+TXT
The visibleRows function returns the number of rows in a dataSheet or pickList or dataSheet that are entirely visible.
lies +TXT
/data
Applies to dataSheets, pickLists
MOCELL10>LST
MOCELL10
VisibleCols Function topics
CRDHdeleteobject message
CRDHdisable command
CRDHdisable menuitem command
This Special ContainerPROP
popupnum
5bkgd
data
This Special ContainerTAIL
++TXT
this <card | background | stack>ADDD
RE+TXT
This contains a generic reference to what is currently on the screen, even if the script is running elsewhere.TAIL
PURE>LST
MOCELL10
Target Special Containeriner
It Special Containeriner
Me Special ContainerinerADDD
DeleteCard MessagePROP
popupnum
9bkgd
data
DeleteCard MessageTAIL
++TXT
on deleteCard
end deleteCardADDD
PURE+TXT
The deleteCard message is sent to a card immediately before the card is deleted.
Notes:
The deleteCard message is purely informational. Intercepting the message with a handler does nothing to prevent the object from being deleted.TAIL
URE+TXT
Place the following handler in the script of the current stack and then delete a card.
on deleteCard
answer the number of fields of this card &&
"fields will be lost"
end deleteCardTAIL
PURE+TXT
/data
Sent to the deleted cardTAIL
PURE>LST
MOCELL10
Delete {row/col} Command
DeleteObject MessagesageADDD
Divide CommandPROP
popupnum
42bkgd
data
Divide CommandTAIL
+T+TXT
divide [<chunk> of] <container> by <divisor>ADDD
PURE+TXT
There are two methods of dividing two numbers: the arithmetic command divide and the mathematical operator /.
The divide command divides the value of [<chunk> of] <container> by the value of <divisor> and puts the result back into [<chunk> of] <container>.
Notes:
The value previously in the container must be a number; it is replaced by the new value.TAIL
PURE+TXT
Valid uses of the divide operator include:
divide field 3 by 12
divide word 1 of bg fld "Salary" by 365
divide annual_salary by num_daysTAIL
URE>LST
MOCELL10
Div Operator Operator
Mod Functiontion
/ (Division) Operator
CRDHfunctionkey message
CRDHgo command
CRDHhide <object> command
print topiccard
topic namedata
/ (Division) OperatorTAIL
dscTAIL
dscTAIL+RGr
shape id 4TAIL
id 4TAIL
CRDHdismiss command
CRDHdiv operator
CRDHdivide command
CRDHdelete card command
CRDHdeletecard message
CRDHdiskspace function
xINFO
PlayCounter PropertyPROP
popupnum
80bkgd
data
PlayCounter PropertyTAIL
+T+TXT
the playCounter of <movie | path | sound>ADDD
The play+TXT
The playCounter property is a read
only property that indicates the current playback position relative to the playStart, expressed in the units set by the units property.TAIL
s +TXT
/data
Applies to movies, paths, sounds
MOCELL10>LST
MOCELL10
PlayDuration Propertyrty
PlayStart Propertyrty
Div OperatorPROP
popupnum
8bkgd
data
Div OperatorTAIL
<number> div <number>ADDD
The div +TXT
The div operator calculates the whole number result, or quotient, of dividing the number to its left by the number to its right. Div ignores any remainder
the result is always whole.TAIL
e the+TXT
Type the following statement in the Message Box and press Enter:
28 div 9
The value 3 is returned.TAIL
CELL10>LST
MOCELL10
Divide Commandmand
Mod Functiontion
/ (Division) Operator
RulerStyle PropertyPROP
popupnum
102bkgd
data
RulerStyle PropertyTAIL
+TX+TXT
set the rulerStyle to
{inches | centimeters | pixels}ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
The rulerStyle property determines the units that are used when the screen ruler is displayed. The rulerStyle also determines the units for gridSize. The default unit is pixels.TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
GridSize Propertyerty
SnapToGrid Propertyerty
FlipInterval PropertyPROP
popupnum
45bkgd
data
FlipInterval PropertyTAIL
+T+TXT
set the flipInterval of [leg <number> of]
<path> to <integer>ADDD
The flip+TXT
The flipInterval property indicates the interval (in ticks) during which an object is visible as it traverses the path. Note that you must animate more than one object along the path to see the flipInterval effect.
You can set this value to apply to either the entire path or to each leg of the path. If you want to specify a different flipInterval value for each leg of the path, you must also set the playStyle property of the path to a value of useLegTiming.TAIL
Applies +TXT
/data
Applies to paths, legs of paths
MOCELL10>LST
MOCELL10
Animate From Commandndand
Blocking Propertyrty
PlayStyle Propertyrty
CRDHfreesize property
CRDHfullscreen property
CRDHfunction control statement
CRDHdomenu message
CRDHdontprint property
CRDHdoubleclick message
EditBkgnd PropertyPROP
popupnum
37bkgd
data
EditBkgnd PropertyTAIL
+T+TXT
set the editBkgnd to <boolean>ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
EditBkgnd is a global property that determines where painting and editing of an object occurs. If the editBkgnd property is true, those actions occur on the current background, and "(Background)" appears after the stack name in the title bar of the card. If the editBkgnd property is false, those actions occur on the current card.
Notes:
Selecting the background tool from the toolbar and selecting "Background" from the "Edit" menu are equivalent to setting the property to true.TAIL
PURE+TXT
To see how the editBkgnd property works, type the following script into a button:
on mouseUp
get the editBkgnd
if it is false then set the editBkgnd to true
choose line tool
drag from 100,100 to 200,200
choose browse tool
set the editBkgnd to false
end mouseUp
A line is drawn on the current background.TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
There are no related topics
CRDHleft property
CRDHlength function
CRDHlibraries function
CRDHlibrarystack message
CRDHline text chunk
CRDHlinepattern property
CRDHlist function
CRDHln function
CRDHln1 function
Round FunctionPROP
popupnum
47bkgd
data
Round FunctionTAIL
+T+TXT
the round of <number>
round (<number>)ADDD
The roun+TXT
The round function returns the nearest integer value.TAIL
ry roun+TXT
Try rounding numbers by typing the following in the Message Box and pressing Enter:
the round of 50.75
the round of -6.5
round (3/4)TAIL
ELL10>LST
MOCELL10
There are no related topics
DoubleClick MessagePROP
popupnum
12bkgd
data
DoubleClick MessageTAIL
+T+TXT
For bitmaps:
on doubleClick [<pixelColor>]
end doubleClick
For dataSheets and pickLists
on doubleClick [<row> [, <col>]]
end doubleClick
For all other objects:
on doubleClick
end doubleClick
For locked text fields:
on doubleClick [<word> [, <wordnum>]]
end doubleClickADDD
URE+TXT
The doubleClick message is generated whenever the user double-clicks on an object. When a physical cell of a dataSheet or pickList is clicked, two parameters are sent with the doubleClick message identifying the row and column of the data that was clicked.
When a bitmap is clicked, the doubleClick message carries a parameter that describes the color value of the pixel that was clicked.
For fields, two parameters are sent with the doubleClick message. The first parameter contains the text of the word that was clicked on. The second parameter contains the position of that word in the field i.e., what number word it is. To get the two parameters, the field's lockText must be set to true.
Notes:
The first click of a double-click sends mouseDown and mouseUp messages; the second click sends doubleClick and mouseUp messages.
The speed of the double-click is determined by system settings.
This message is not sent to the palette, sound, path, or timer.TAIL
PURE+TXT
/data
Sent to the double-clicked object or cardTAIL
URE>LST
MOCELL10
LockText Propertyerty
MouseUp Messagesage
MouseDown Messagesage
Drag CommandPROP
popupnum
44bkgd
data
Drag CommandTAIL
+T+TXT
drag from <x,y> to <x1,y1>
[with CommandKey | OptionKey | ShiftKey]ADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
This command performs the equivalent of dragging the mouse from one location to another. The two locations are screen coordinates. In each case, the first number represents a horizontal offset, and the second represents a vertical offset. Offsets are measured in pixels from the top
left corner of the screen.
The drag command can be used with the Ctrl, Alt, or Shift keys to create additional effects. For example, to select text in a field using the drag command, you must use with shiftkey. In all other cases, using the with option results in the same action as holding down the specified key while dragging.
Notes:
You can use the drag command with any tool selected, but drag has no effect on some Paint tools.
The actual location of the pointer is not affected by the drag command.TAIL
a+TXT
Create a button with the following script:
on mouseUp
choose rect tool
drag from 60,60 to 250,250
choose browse tool
end mouseUpTAIL
MOCELL10>LST
MOCELL10
Choose Commandmand
Click At Commandd
ClickH Functiontion
ClickLoc Functiontion
ClickV Functiontion
Tool Functiontion
DropMessages PropertyPROP
popupnum
35bkgd
data
DropMessages PropertyTAIL
+T+TXT
set the dropMessages of <movie | path |
sound | timer> to <boolean>ADDD
DropMess+TXT
DropMessages is a boolean property that allows you to specify whether or not to pay attention to the given messageDropTime. If dropMessages is false, then no messages will be discarded, even if they cannot be sent within the maximum latency specified by messageDropTime. Thus, when dropMessages is set to false, this property overrides messageDropTime.
The default value of dropMessages is false.TAIL
Applies +TXT
/data
Applies to movies, paths, sounds, timers
L10>LST
MOCELL10
MessageDropTime Propertyrty
Messages Propertyertyy
Units Propertyerty
GridSize PropertyPROP
popupnum
50bkgd
data
GridSize PropertyTAIL
+T+TXT
set the gridSize to <number>ADDD
PURE+TXT
The gridSize property determines the granularity of the snapToGrid property. The gridSize, which may be any positive floating-point number, sets the line spacing in terms of the current screen units (determined by the rulerStyle property). For example, if the rulerStyle is set to "inches", a gridSize of .5 means that the grid lines are spaced a half-inch apart. The default value of the gridSize is 5.
Notes:
The screen grid takes effect only when the snapToGrid property is set to true.TAIL
PURE+TXT
Type the following statements into the Message Box to activate a grid with lines one centimeter apart:
set the rulerStyle to centimeters
set the snapToGrid to true
set the gridSize to 1
Type the following statements into the Message Box to activate a grid with lines ten pixels apart:
set the rulerStyle to pixels
set the snapToGrid to true
set the gridSize to 10TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
RulerStyle Propertyerty
SnapToGrid Propertyerty
CRDHscrolllimit property
CRDHshareddata property
CRDHstartarrow property
CRDHtextfont property
.CRDHtype property
Enable CommandPROP
popupnum
46bkgd
data
Enable CommandTAIL
+T+TXT
For buttons, fields, dataSheets, and pickLists:
enable <button | field | dataSheet | pickList>
For menus:
enable menu <menu_name>ADDD
The enable command sets the enable property of the target object to true. If the target is a menu, the menu and all associated menu items that were enabled at the time of disabling are again selectable. The enable command applies only to user-defined menus.
Notes:
You cannot modify anything on the existing File or Edit menus.TAIL
RE+TXT
Enter the following statement in the Message Box to enable button named
My Button".
enable button "My Button"TAIL
PURE>LST
MOCELL10
Disable Commandm Command
Enable Propertyerty
Edit Script CommandPROP
popupnum
45bkgd
data
Edit Script CommandTAIL
+TXT
edit [the] script of <object>ADDD
NOT AVAILABLE IN THE PLAYER
The edit script command opens the script editing window of a specific object.
The edit script command gives you a simple, fast way to edit the script of an object by making it unnecessary to select the object using menu or keyboard commands and then access the script. Edit script also allows you to open scripts that, because of scripting errors, are otherwise inaccessible.TAIL
use+TXT
Create a button and name it
Test". Type the following lines into the Message Box and press Enter after each:
edit script of button "test"
edit script of this card
edit script of this stack
Each appropriate script editing window is opened.TAIL
Each+TXT
/data
Applies to all objects
/>LST
MOCELL10
Script Propertyperty
Rotation PropertyPROP
popupnum
99bkgd
data
Rotation PropertyTAIL
+T+TXT
set the rotation of [leg <number> of] <path>
to <clockwise | counterclockwise>ADDD
This pro+TXT
This property determines whether an object traveling along a circular leg of a path travels clockwise or counterclockwise.
Notes:
If a leg is not specified, the rotation property setting applies to the first leg only.TAIL
+TXT
set the rotation of leg 1 of path 1 to clockwise
Applies +TXT
/data
Applies to legs of paths
L10>LST
MOCELL10
CurveType Propertyrty
Enable PropertyPROP
popupnum
38bkgd
data
Enable PropertyTAIL
+T+TXT
set the enable of <object> to <boolean>ADDD
The enab+TXT
The enable property determines whether an object is selectable by a user (or, in other words, whether the object responds to a mouse click). If enable is set to false, the object's text and icon are dimmed and no mouse-related messages are sent. If enable is set to true (the default), the object appears and responds normally.
For fields, if enable is set to false, the user cannot type text into the field.TAIL
l+TXT
The following button script enables all currently disabled buttons on the button's card:
on mouseUp
repeat with i = 1 to the number of buttons
in this card
get the enable of button i
if it is false then
set the enable of button i to true
end if
end repeat
end mouseUpTAIL
lies +TXT
/data
Applies to buttons, datasheets, fields, picklists
MOCELL10>LST
MOCELL10
Disable Commandm Command
Enable Commandm Command
NoEvents Propertyerty
Return Control StatementPROP
popupnum
16bkgd
data
Return Control StatementTAIL
+T+TXT
return <value>ADDD
PURE+TXT
Return defines the value of a function. Alternate return statements can be placed in a function's handler. Each return exits the function handler, skipping remaining commands. Return can also be used to exit a message handler, in which case the return value is placed into the result.TAIL
PURE>LST
MOCELL10
There are no related topics
Message Box Special ContainerPROP
popupnum
3bkgd
data
Message Box Special ContainerTAIL
age [box]
[t+TXT
[the] message [box]
[the] msg [box]ADDD
ox special c+TXT
The message box special container places a value into the Oracle Media Object's Message Box.
Only the first line of whatever you put into the Message Box is used; any additional lines are discarded. The first line can be of any length and can therefore extend off the screen. TAIL
e +TXT
Create a button and type the following into the script of the button:
on mouseUp
put "Hello, world!" into the message box
end mouseUp
Click on the button. "Hello, world" will appear in the Oracle Media Objects Message Box. TAIL
MOCELL10
CRDHstartpoint property
CRDHstartsize property
CRDHstartup message
CRDHendarrow property
CRDHendplay command
CRDHendpoint property
CRDHdrag command
CRDHeditbkgnd property
CRDHend control statement
$CRDHtool function
%CRDHtop property
&CRDHtopleft property
5CRDHdata
CRDHlocal variables property
CRDHrulerstyle property
EndArrow PropertyPROP
popupnum
39bkgd
data
EndArrow PropertyTAIL
+T+TXT
set the endArrow of <shape> to <boolean>ADDD
The endA+TXT
The endArrow property determines whether an arrowhead is displayed at the right end, or bottom end in the case of a vertical line, of a line shape object, with right taking priority over the bottom end of the line. If endArrow is true, the arrowhead is displayed. If endArrow is false, the default, no arrowhead appears.TAIL
Add the +TXT
Add the following handler to a line shape object:
on mouseUp
get the startArrow of me
set the startArrow of me to (not it)
set the endArrow of me to it
end mouseUp
When the user clicks on the shape, an arrowhead appears on one end of the line. When the user clicks on the shape again, the arrowhead shifts to the opposite end.TAIL
Applies +TXT
/data
Applies to line shapes
ELL10>LST
MOCELL10
StartArrow Propertyerty
EndPlay CommandPROP
popupnum
48bkgd
data
EndPlay CommandTAIL
+T+TXT
endplay <sound> [after <number> <units>]
[with effect <play_effect>]ADDD
The endp+TXT
The endplay command ends the playback of the sound in the time specified by units. The units property values can be milliseconds, seconds, ticks, sample Possible values for play_effect are fadein, fadeout, or none.
The effect for the termination is optional. If it is specified, it will overwrite the playEffects. Specifying the units in the command is also optional. If not specified, the current setting for the units property is used. This command is provided so you can stop a sound at a specified future time with or without an effect, since the stop command can only be used to stop a sound immediately. See the playEffects property for a list of available effects.TAIL
es +TXT
/data
Applies to sounds
MOCELL10>LST
MOCELL10
PlayEffects Propertyrty
Stop Commandand
Units Propertyerty
EndPoint PropertyPROP
popupnum
40bkgd
data
EndPoint PropertyTAIL
+T+TXT
set the endPoint of [leg <x,y> of]
<path> to <x,y>ADDD
The endP+TXT
The endPoint property determines where the selected leg ends with respect to the top left corner of the path. Unless you specify a leg, the endPoint property applies to the last leg of the path.TAIL
Applies +TXT
/data
Applies to paths, legs of paths
MOCELL10>LST
MOCELL10
There are no related topics
CRDHstop command
CRDHsystemcolors function
CRDHtan function
CRDHreference property
CRDHrelease command
CRDHrelease library command
CRDHendsize property
CRDHenterinfield message
CRDHenterkey message
* (Multiplication) OperatorPROP
popupnum
2bkgd
data
* (Multiplication) OperatorTAIL
++TXT
<numeric expression> * <number>ADDD
URE+TXT
The * (multiplication) operator multiplies the numeric expressions located to its left and right.
Notes:
Using spaces to delimit the expression is optional.TAIL
PURE+TXT
Type the following in the Message Box and press Enter after each line:
put 6 * 2 into result
result
This example returns 12.TAIL
PURE>LST
MOCELL10
Multiply Commandmand
CRDHdatascroll property
CRDHdate function
CRDHdehilite command
CRDHdelete <chunk> command
CRDHdelete <object> command
CRDH+ (plus) operator
CRDHabs function
CRDHadvance command
)CRDHanimate from command
.CRDHarrowkey message
3CRDHatan function
It Special ContainerSCRP
on openCard
global gMediaTalkReference
set the cursor to watch
if gMediaTalkReference is "Containers" then
set the globalRowNum of this stack to 1
put "Containers" into bg fld "category"
put card fld "Containers" of card "data" into bg lst "list" of bg "topic background"
set the alpha of this stack to false
dehilite bg lst "list"
dehilite bg lst "category"
hilite row 8 of bg lst "category" of bg "topic background"
set the vertical scrollline of bg lst "list" to 1
hilite row 1 of bg lst "list"
end if
set the cursor to arrow
put empty into gMediaTalkReference
end openCard
popupnum
1bkgd
data
It Special ContainerTAIL
itADDD
The it container is a global variable that receives the results of the following commands:
answer
ask file
ask password
convert
create
play file
popup
read from fileTAIL
Type the following into the Message Box and press Enter after each:
get the mouseLoc
put it TAIL
MOCELL10
There are no related top@
CRDHrandom function
CRDHread from file command
CRDHrealize command
+ (Plus) OperatorPROP
popupnum
3bkgd
data
+ (Plus) OperatorTAIL
++TXT
<numeric expression> + <numeric expression>ADDD
PURE+TXT
The + (plus) operator adds the numeric expressions located to its left and right.
Notes:
Using spaces to delimit the expression is optional.TAIL
PURE+TXT
Type the following in the Message Box and press Enter after each line:
put 5 + 7 into result
result
This example returns 12.TAIL
PURE>LST
MOCELL10
Add Commandy Command
- (Minus) OperatorPROP
popupnum
4bkgd
data
- (Minus) OperatorTAIL
++TXT
<numeric expression> - <numeric expression>ADDD
PURE+TXT
The - (minus) operator subtracts the numeric expression that appears to its right from the numeric expression that appears to its left.
Notes:
Using spaces to delimit the expression is optional.TAIL
PURE+TXT
Type the following in the Message Box and press Enter:
100 - 30
This example returns 70.TAIL
MOCELL10
Subtract Commandmand
/ (Division) OperatorPROP
popupnum
5bkgd
data
/ (Division) OperatorTAIL
++TXT
<dividend>/<divisor>ADDD
The / (d+TXT
The / (division) operator divides the numeric expression to its left by the numeric expression to its right.
Notes:
Using spaces to delimit the expression is optional.TAIL
the+TXT
Type the following lines in the Message Box and press Enter after each line:
put 30 into number1
put 3 into number2
put number1 / number2
This example returns 10.TAIL
ELL10>LST
MOCELL10
Divide Commandmand
CRDHpush command
CRDHput command
CRDHquit command
(Line Continuation Character)PROP
popupnum
2bkgd
data
(Line Continuation Character) TAIL
++TXT
<line of Oracle Media Talk code>
<continued line of Oracle Media Talk code>ADDD
PURE+TXT
The line continuation character (
) allows a single line of Oracle Media Talk code to span multiple lines in the script editing window. The line continuation character also allows you to create extended strings; the character is replaced by two spaces when the string is processed.
You create the line continuation character by pressing Shift-Enter in Windows (Option-L on the Macintosh) while in the script editing window. The line continuation character has no effect on the way the code is processed; it is solely a visual aid to the developer.
Notes:
The line continuation character must be the last character on a line.TAIL
PURE+TXT
Consider the following pickList handler:
on mouseEnter
put "your name" into col 3 of lst id 5
end mouseEnter
The handler can be written using a line continuation character to split the second line, and is exactly equivalent to the original handler:
on mouseUp
put "your name"
into col 3 of lst id 5
end mouseUpTAIL
PURE>LST
MOCELL10
There are no related topics
-- (Comment Symbol)PROP
popupnum
1bkgd
data
-- (Comment Symbol) TAIL
+TXT
-- <comment>ADDD
The double hyphen (--), or comment symbol, prefaces a comment in the script editing window. Everything between the comment symbol and the next return is ignored by the Oracle Media Talk parser. There can be no intervening spaces or other symbols between the hyphens.
Code comments are a very useful means of documenting how your application works. Oracle Media Talk code is already very intuitive and easy to read, but comments can help clarify the purpose of ambiguous operations.
Commenting can also be a useful way to temporarily disable part of your script without deleting code.
Notes:
Many systems convert the double hyphen (--) to an em dash (
).TAIL
ms conver+TXT
Create a button and enter the following script:
on mouseUp
-- This handler will display a message
-- saying whether
-- part of its code is commented out.
put "commented out" into message_text
-- put "not commented out" into message_text
put message_text
end mouseUp
Save the script and try the button. Then open the button's script, remove the hyphens before the second put command, and try the button again.TAIL
re the s>LST
MOCELL10
There are no related topics
:INFO
UseLegTiming PropertyPROP
popupnum
143bkgd
data
UseLegTiming PropertyTAIL
+TX+TXT
set the useLegTiming of <path> to <boolean>
set the playStyle of <path> to useLegTimingADDD
Note: T+TXT
Note: The useLegTiming boolean property is one possible value for the playStyle property of paths.
When UseLegTiming is set to true, the play will use the duration value of individual legs rather than the one set for the path as a whole. When UseLegTiming is set to false, the play will use the duration value of the path as a whole rather than those set for the individual legs.TAIL
Applies +TXT
/data
Applies to paths
MOCELL10>LST
MOCELL10
UseLegScaling Propertyrty
Blocking Propertyrty
PlayNumber Propertyrty
PlayStyle Propertyrty
/INFO
ArrowKey MessageSCRP
on openCard
global gMediaTalkReference
set the cursor to watch
if gMediaTalkReference is "Messages" then
set the globalRowNum of this stack to 1
put "Messages" into bg fld "category"
put card fld "Messages" of card "data" into bg lst "list" of bg "topic background"
set the alpha of this stack to false
dehilite bg lst "list"
dehilite bg lst "category"
hilite row 4 of bg lst "category" of bg "topic background"
set the vertical scrollline of bg lst "list" to 1
hilite row 1 of bg lst "list"
end if
set the cursor to arrow
put empty into gMediaTalkReference
end openCard
popupnum
1bkgd
data
ArrowKey MessageTAIL
on arrowkey [<keyname>]
end arrowkeyADDD
When the user presses an arrow key, Oracle Media Objects sends an arrowKey message with the name of the key as a parameter. Possible values for <keyname> are left, right, up, and down.
The arrowKey message invokes the arrowKey command if it is not intercepted before it reaches Oracle Media Objects.TAIL
Put the following handler in your card, background, or stack script. Save the script and then press any arrow key.
on arrowKey thekey
answer "You just pressed the" &&
thekey && "arrowkey."
end arrowKeyTAIL
/data
Sent to the current cardTAIL
MOCELL10
There are no related topics.
CRDHscrollbars property
CRDHscrollframe property
CRDHscrolling property
9CRDHuselegtiming property
:CRDHvalue function
;CRDHversion function
CRDHacceleration property
CRDHadd command
CRDHadd menu command
!CRDHadd menuitem command
"CRDHadd property command
Quit CommandPROP
popupnum
77bkgd
data
Quit CommandTAIL
+T+TXT
quitADDD
The quit+TXT
The quit command exits Oracle Media Objects, and is the scripting equivalent of the File -> Quit menu item command.TAIL
MOCELL10>LST
MOCELL10
Clear Commandand
Copy Card Commandfilena
Create Card Commanddmman
Cut Commandmand
Paste Commandmmand
Paste Card Commandand
!INFO
Add Menu CommandPROP
popupnum
2bkgd
data
Add Menu CommandTAIL
++TXT
add menu to menuItem <item> of menu
<menu_name>ADDD
The add +TXT
The add menu command creates a submenu attached to the specified <item> of the specified <menu_name>. The submenu is hierarchical: it pops up when the user selects <item> from the menu. The fact that a submenu is associated with a menu item is indicated by the presence of a small black triangle to the right of <item>. A submenu may be attached only to first level menu items
those visible directly beneath the menu in the menu bar
not to another submenu.
Once you have created the submenu, you can modify it using the add menuItem command, or by setting the MenuItems property.
Notes:
Once created, a submenu cannot be deleted unless the top-level menu item to which it is attached is deleted, or you reset the menuItems property.TAIL
Type the+TXT
Type the following in the Message Box and press Enter after each:
create menu "Colors"
add menuItem "Red" to menu "Colors"
add menu to menuItem "Red" of menu "Colors"
set the menuItems of menu "Red" of menu
"Colors" to "Dark;Light"TAIL
/data
Applies to menus
MOCELL10>LST
MOCELL10
Add Property Commandmand
Create Stack Commandmman
Delete {row/col} Command
MenuItems Propertyerty
Check MenuItem Commandnd
Uncheck MenuItem Command
Enable MenuItem Command
Disable MenuItem Command
DoMenu Messagesage
"INFO
Add MenuItem CommandPROP
popupnum
3bkgd
data
Add MenuItem CommandTAIL
++TXT
add menuItem <item> to [<submenu> of] menu
<menu_name>ADDD
PURE+TXT
The add menuItem command adds the specified element <item> to the end of a menu or submenu. Each item may contain up to 31 characters.
The following list summarizes the special characters that can be used when adding a menu item:
Character: (
Meaning: Item created disabled
Example: "(Next"
Character: /
Meaning: Acclerator key to follow
Example: "Delete/D"
Character: &
Meaning: Character key equivalent to follow (MS-Windows only)
Example: "&Previous" or "Pr&evious"
Character: ;
Meaning: Multiple items created
Example: "First;Last;Recent"
Disabled items are grayed out
Accelerator keys are preceded by the ^ symbol on Windows (the Command key on Macintosh)
The character key equivalent is the underlined letter of the menu item on Windows
Notes:
You can add duplicate entries to a menu, but only the first entry can be affected by other scripting elements such as enable and disable.
You cannot create your own File or Edit menus, nor can you delete or modify anything on the existing File or Edit menus.
Once created, a submenu cannot be deleted unless the top-level menu item to which it is attached is deleted, or you reset the menuItems property.
Character keys are used in Windows. Accelerator keys are used on both the Windows and Macintosh platforms.
Notes:
A more efficient method of adding items to a menu is to set the menuItems property directly.TAIL
Type the following in the Message box and press Enter after each:
create menu "Colors"
add menuItem "Blue" to menu "Colors"
PURE+TXT
/data
Applies to menus
PURE>LST
MOCELL10
Add Menu Commandmand
Create Menu Commanddmman
Disable MenuItem Command
MenuItems Propertyerty
+INFO
Annuity FunctionPROP
popupnum
2bkgd
data
Annuity FunctionTAIL
++TXT
annuity (<periodic rate, number of periods>)
the annuity of <periodic rate, number of periods>ADDD
The annuity function calculates the present value of one payment unit.
Multiplying the result of the annuity function by the amount of a single payment calculates the present value for the accrual payments.TAIL
PURE+TXT
Compute the monthly installments on a $60,000 loan at an interest rate of 10% and repayment in 60 installments. For this example, the periodic rate is 10/100ths (10%) divided by 12 months in the year, and there are 60 periods.
Create a button and place the following handler in its script:
on mouseUp
put 60000 / annuity (10/100/12, 60)
end mouseUp
This handler returns in the Message Box a monthly installment value of 1274.822683.TAIL
PURE>LST
MOCELL10
Compound Functiontion
CRDHscript property
CRDHscriptfont property
CRDHscriptsize property
%INFO
Advance CommandPROP
popupnum
5bkgd
data
Advance CommandTAIL
++TXT
advance <movie | path>ADDD
For movi+TXT
For movies, the advance command advances a paused (not stopped) digital movie by one frame, without sound.
For paths, the advance command advances a paused (not stopped) path by one tick, possibly causing movement.TAIL
e a+TXT
Create a movie and associate it with a short movie clip. Create a button and name it
SlowMotion". Put the following handler into the button's script:
on mouseUp
pause mov 1
wait 5 seconds
repeat for 10 times
advance mov 1
wait 3 seconds
end repeat
end mouseUp
Type the following into the Message Box:
play movie 1
Now click on the "SlowMotion" button to play the movie in slow motion. You can also alter this code block to work with a path.TAIL
s +TXT
/data
Applies to movies, paths
L10>LST
MOCELL10
Backup Commandand
Pause Commandand
&INFO
AnchorPoint PropertyPROP
popupnum
2bkgd
data
AnchorPoint PropertyTAIL
++TXT
set the anchorPoint of <path> to <x,y>ADDD
The anch+TXT
The anchorPoint property is a pair of x,y coordinates that determine the location on an animated object that will act as the anchor point to the path.
<x,y> reflects, respectively, the horizontal proportion from the left edge of the animated object and then the vertical proportion from the top edge of the animated object, separated by a comma. The point 0,0 represents the upper left corner of the animated object, while 100,100 is the lower right. <x,y> are integer values.
In other words, if you want a button to travel along the path, touching the path route with its top left corner, you would specify the anchorPoint of the path to 0,0, indicating the top left corner of the button.
The default value of the anchorPoint property is 50,50, which reflects the center of the animated object.
Notes:
Setting the anchorPoint property of a specific leg of a path gives the same result as setting the anchorpoint of the entire path.TAIL
/data
Applies to paths
MOCELL10>LST
MOCELL10
There are no related topics
PINFO
CantDelete PropertyPROP
popupnum
17bkgd
data
CantDelete PropertyTAIL
+T+TXT
set the cantDelete of <object> to <boolean>ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
The cantDelete object property controls the user's ability to delete an object. The default value is false, or the object can be deleted. If an object's cantDelete property is true, the object cannot be deleted.
PURE+TXT
To protect a card from deletion, type the following into the Message Box and press Enter:
set the cantDelete of card "Main" to trueTAIL
PURE+TXT
/data
Applies to cards, backgrounds, stacks
PURE>LST
MOCELL10
CantModify Propertyerty
(INFO
Animate Along CommandPROP
popupnum
6bkgd
data
Animate Along CommandTAIL
++TXT
animate <object>[,...] along <path>ADDD
The anim+TXT
The animate along command animates the movement of one or more objects along a path.
Setting the animate along command overrides the playList property setting.
Notes:
If the flipInterval property of a path is set, each object animating along a path will be visible for the value of flipInterval. The flipInterval value applies only if multiple objects are animating along a path.TAIL
Applies +TXT
/data
Applies to paths
MOCELL10>LST
MOCELL10
FlipInterval Propertyerty
Animate From Commandndnd
Location (Loc) Property
Scroll Commandmand
TextHeight Propertyerty
%CRDHanchorpoint property
&CRDHand operator
'CRDHanimate along command
*INFO
Animate From CommandPROP
popupnum
7bkgd
data
Animate From CommandTAIL
++TXT
animate <object> from <x,y> to <x,y>
<in | for> <integer> <ticks | seconds
| milliseconds> [step <integer>] [accelerate |
decelerate | natural]ADDD
E+TXT
The animate from command animates the movement of an object from one location to another.
For all objects, the animate from command moves the object from the first x,y coordinate to the second x,y coordinate in the amount of time you specify. Time is measured in ticks (sixtieths of a second), seconds, or milliseconds. The animate from command modifies the object's location property.
The accelerate modifier causes the animation to increase in speed from beginning to end. The decelerate modifier causes the animation to decrease in speed from beginning to end. The natural modifier causes the animation to accelerate at the beginning and to decelerate at the end. If no modifier is used, the animation progresses at a constant speed.
The step option allows you to specify the number of units during which each object is visible. This option makes sense only if you are animating multiple objects.
Script execution is always synchronous when using the animate from command.TAIL
PURE+TXT
Create a button and name it
Mover". Now add the following handler to the button's script:
on mouseUp
animate button "Mover" from 100,100 to
300,300 in 120 ticks
end mouseUp
Now click on button "Mover". The button moves diagonally down the screen. Now change the coordinates to 300, 300 and 100, 100 and watch the button move diagonally up the screen.TAIL
PURE+TXT
/data
Applies to all objects
PURE>LST
MOCELL10
Animate Along Commandand
Location (Loc) Property
Scroll Commandmand
TextHeight Propertyerty
0INFO
Ask CommandPROP
popupnum
10bkgd
data
Ask CommandTAIL
T+TXT
ask <question> [with <suggestion>] at [x,y]ADDD
The ask command creates a dialog box that prompts the user to type a response. <question> size limit varies by font style and platform. Oracle Media Objects automatically generates two reply buttons for you: OK and Cancel. The typed response is stored in the variable it.
If you include a text string <suggestion> when you use the ask command, the suggestion appears in the dialog box as highlighted text. If you do not enter a suggested reply, the entry field of the dialog box is blank.
Optionally, you can specify the location of the dialog box by supplying the x and y offsets (in pixels) from the top-left corner of the Oracle Media Objects window. If you do not specify a location, Oracle Media Objects centers the dialog box on the screen.
Notes:
The text a user types into the dialog box (i.e., the answer to the question) is placed into the variable it, either when the OK button is clicked or when Enter is pressed. If the Cancel button is clicked (or Escape is pressed), the dialog box is dismissed and it remains empty.TAIL
), the +TXT
You can use the ask command to request information, such as the user's name. Type the following examples in the Message Box and press Enter after each. After you have answered each question, type it in the Message Box to see the stored value.
ask "What is your name?" with "John Smith"
ask "How many tickets would you like to order?" at 50,40
ask field "Questions" with line 1 of field "Responses"TAIL
k field "Q+TXT
/data
Applies to global
/>LST
MOCELL10
Ask Password Commandmand
Answer Commandmand
Pick Commandmand
It Special ContainerinerADDD
inerADDD
$BMAP
7INFO
MouseLoc FunctionPROP
popupnum
35bkgd
data
MouseLoc FunctionTAIL
+T+TXT
the mouseLoc
mouseLoc()ADDD
PURE+TXT
The mouseLoc function returns the current location of the mouse pointer as two screen coordinates, the horizontal and vertical offsets.
The offsets are measured in pixels from the top left corner of the card window.TAIL
URE+TXT
Create a new field and name it
Coordinates". Put the following script into the card:
on mouseUp
put the mouseLoc into field "Coordinates"
end mouseUp
Return to the Browse mode and click anywhere in the card.TAIL
URE>LST
MOCELL10
ClickH Functionand
ClickLoc Functiontion
ClickV Functiontion
MouseV Functiontion
*CRDHannuity function
+CRDHanswer command
,CRDHarrowkey command
PlayRepeated MessagePROP
popupnum
35bkgd
data
PlayRepeated MessageTAIL
+T+TXT
on playRepeated
end playRepeatedADDD
RE+TXT
When the playNumber property of a movie, path, or sound is set to greater than 1, this message is sent to the object after each playback.
For example, if the playNumber of a movie is set to 3, the playRepeated message is sent after first playback, then again after the second playback. After the third playback the playStopped message is sent to the object.TAIL
URE+TXT
/data
Sent to movies, paths, soundsTAIL
PURE>LST
MOCELL10
PlayNumber Propertyrty
PlayStopped Messageage
2INFO
Ask Password CommandPROP
popupnum
12bkgd
data
Ask Password CommandTAIL
+T+TXT
ask password <question> [with <reply>]
[at <x,y>]ADDD
The ask +TXT
The ask password command behaves much like the ask command, but goes one step further. Instead of entering the user's typed reply into the local variable it, ask password translates the reply into a number and stores it in encrypted form.
You can use this command to maintain the confidentiality of your data, prevent damage, and protect against modification of your stacks. For example, Oracle Media Objects can store the user's typed reply in a field and compare it with the valid passwords that you have previously created.TAIL
To use t+TXT
To use the ask password command, you must first determine the encrypted form of the password you want to use. This can be done by putting the following script in a button:
on mouseUp
ask password "Please enter desired password"
put "The encrypted form is" && it into msg
end mouseUp
Now go back to Browse mode and click on the button. At the prompt, enter "test" as the password and click on the OK button. The encrypted form appears in the Message Box:
The encrypted form is 1017032090
Now you can use this code in a script to protect sensitive information, such as salaries in an employee stack. Make a field called "Salary" and enter a value. Then type this in the Message Box and press Enter:
hide field "Salary"
Now you can make a button called "Show Salary", and set it up so that the user can only see the field if he or she knows that the password is "test." Create this button script:
on mouseUp
ask password "Please enter password"
if it is -362801982 then
show field "Salary"
else
answer "Incorrect Password"
end if
end mouseUpTAIL
pplies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Ask Commandd Command
;INFO
AutoSave PropertyPROP
popupnum
6bkgd
data
AutoSave PropertyTAIL
++TXT
set the autoSave to <time interval>ADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
The autoSave property sets the time interval in seconds at which time Oracle Media Objects saves all changes. The time interval can be set through a script or in the Message Box.
Notes:
Oracle Media Objects saves changes during the idle period only.
The autoSave time interval can also be set with the Preferences dialog box, which you select from the File menu.
To disable autoSave, set the value of autoSave to 0.TAIL
deter+TXT
To determine the current autoSave time interval, type the following in the Message Box and press Enter:
the autoSave
To set the autoSave time to an interval other than those listed, first convert the time into seconds. For example, to set autoSave to 2 minutes, type the following in the Message Box:
set the autoSave to 120
Now Oracle Media Objects will save your changes every two minutes.TAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
There are no related topics
FINFO
Bottom PropertyPROP
popupnum
12bkgd
data
Bottom PropertyTAIL
+T+TXT
set the bottom of <object> to <location>ADDD
The bott+TXT
The bottom property determines the position of the bottom of an object, measured in pixels from the top of the card window. The bottom property also determines the distance between the bottom of the card window and the top of the Oracle Media Objects window.
You can use the bottom property to determine or change item 4 in the rectangle property (top, left, right, bottom) of a specific object.
Notes:
Changing the bottom property does not change the size of the object; it changes the object's location.TAIL
Create a button and name it "test". Type the following in the Message Box and press Enter:
get the bottomRight of button "test"
put it into temp
set the bottom of button "test" to item 1
of temp+50
Oracle Media Objects repositions the button on the card.
Type the following statement in the Message Box and press Enter to move the current card window down 10 pixels on the screen:
set the bottom of card window to (the bottom
of card window + 10)
+TXT
/data
Applies to all objects, backgrounds, card windows, message box, toolbar
LL10>LST
MOCELL10
BottomRight Propertyerty
Left Propertyrtyy
Location (Loc) Property
Rectangle Propertyerty
Right Propertyoperty
Top Propertyerty
TopLeft Propertyerty
/CRDHask command
0CRDHask file command
1CRDHask password command
CRDHsave [a] copy as <filename> command
CRDHscaletofit property
CRDHscaling property
CRDHautosave property
JCRDHcantdelete property
aCRDHclickv function
vCRDHcompound function
6INFO
Atan FunctionPROP
popupnum
3bkgd
data
Atan FunctionTAIL
Example+TXT
atan (number)
the atan of <number>ADDD
Atan is +TXT
Atan is a mathematical function that returns the trigonometric arctangent (inverse tangent) of a number in radians.
Notes:
To calculate the arctangent of a number in degrees, multiply the angle by pi and divide by 180.TAIL
To get the arctangent of 20 in radians, type the following in the Message Box and press Enter:
atan (20)
The number 1.520838 appears in the Message Box. To get the arctangent of 20 in degrees, type this line in the Message Box and press Enter:
put atan (20)*PI/180
The number 0.026544 appears in the Message Box.TAIL
MOCELL10>LST
MOCELL10
There are no related topics
7INFO
AutoFormat PropertyPROP
popupnum
3bkgd
data
AutoFormat PropertyTAIL
++TXT
set the autoFormat to <boolean>ADDD
URE+TXT
NOT AVAILABLE IN THE PLAYER
The autoFormat property controls formatting behavior in the script editing window. If autoFormat is true, Oracle Media Objects will format, or indent, the last line of script each time you press Enter. If autoFormat is false, the Enter key will have no effect on script formatting.
You can determine the current value of autoFormat by typing the following in the Message Box:
put the autoFormat
By default, the value of the autoFormat property is set to true.TAIL
PURE+TXT
/data
Applies to script formatting (global)
PURE>LST
MOCELL10
There are no related topics
ControlPoint PropertyPROP
popupnum
29bkgd
data
ControlPoint PropertyTAIL
+T+TXT
set the {primary | secondary} controlPoint
[of leg <number>] of <path> to <point>ADDD
Each Bez+TXT
Each Bezier leg of a path has two control points. In Oracle Media Talk, the modifiers primary and secondary are used to distinguish between the two control points. For Bezier motion, the primary and secondary points are used to generate the curve. The control points are used to indicate the tangent vectors at the beginning and end of the leg.
Setting the controlPoint property without a modifier causes both control points to be set to the same value, generating a quadratic Bezier curve. If the points are different, the leg follows a cubic Bezier curve. By default, controlPoints are set to the midpoint of the path, which generates a simple straight line.
Notes:
You can specify a path only, rather than the specific leg of that path, when you set the controlPoint property. The result sets the controlPoint of leg 1 only even if there is more than one leg in the path.TAIL
Applies +TXT
/data
Applies to Bezier legs of a path
MOCELL10>LST
MOCELL10
CenterPoint Propertyrty
CurveType Propertyrty
CRDHplaystart property
CRDHplayvolume property
CRDHpopupmenu command
9INFO
AutoResize PropertyPROP
popupnum
5bkgd
data
AutoResize PropertyTAIL
++TXT
set the autoResize of <movie | bitmap>
to <boolean>ADDD
The auto+TXT
The autoResize property determines whether Oracle Media Objects resizes the movie or bitmap object to the preferred viewing size of the movie file image or graphic file, respectively. When autoResize is set to true, the movie or bitmap object is automatically resized (the movie object resizes itself when the prepare command is issued). When autoResize is set to false, the image of the movie file or graphic is rescaled to fit the dimensions of the movie object.
If the scaleToFit property of a bitmap is set to true, the graphic is rescaled to fit the dimensions of the bitmap.
The default value of autoResize for movies and bitmaps is true.
Notes:
For movies, if the movie file is not viewed at its preferred size, some distortion may occur and playback may not be as smooth.TAIL
Applies +TXT
/data
Applies to bitmaps, movies
0>LST
MOCELL10
MovieFile Propertyerty
Prepare Commandand
ScaleToFit Propertyerty
6CRDHautoformat property
7CRDHautohilite property
8CRDHautoresize property
NINFO
BufferSize PropertyPROP
popupnum
15bkgd
data
BufferSize PropertyTAIL
+T+TXT
set the bufferSize of <sound> to <integer>ADDD
The buff+TXT
The bufferSize property determines the size of the memory buffer used by the Macintosh Sound Manager when the sound object is playing from a sound file. Application designers can use this property for better sound playback, for example, while running from CD
ROMs where high seek times could be offset by larger buffer sizes for quality playback. The bufferSize value is defined and retrieved using the current units.
The default value of bufferSize is .5 seconds. The minimum value is 0 seconds.
Notes:
The bufferSize property applies only to sounds played on a Macintosh.
Be careful about setting the bufferSize property to unexpected values. If there is not a sound file associated with your sound object, you can still modify bufferSize if the units property is set to milliseconds, ticks, or seconds. If the units property is set to samples, however, then you should not attempt to get or set the bufferSize property. If you try to get or set bufferSize in this situation while working in the authoring environment of Oracle Media Objects, then you will get an error message. If you attempt to modify bufferSize under these circumstances while working in the runtime player, the default rate of 22KHz will be used to calculate the value of bufferSize.TAIL
The foll+TXT
The following sound script sets the value of bufferSize according to where the sound file is located. A global variable, called mySoundSource contains a string indicating the type of sound file storage being used. The current units are in milliseconds:
if mySoundSource = "disk" then
set the bufferSize of sound 1 to 500
else if mySoundSource = "cd" then
set the bufferSize of snd 1 to 3000TAIL
Applies +TXT
/data
Applies to sounds (Macintosh only)
MOCELL10>LST
MOCELL10
Play File Commandmand
-INFO
ArrowKey CommandPROP
popupnum
9bkgd
data
ArrowKey CommandTAIL
++TXT
arrowkey <direction>ADDD
The arro+TXT
The arrowKey command generates the same message that is sent when one of the keyboard's arrow keys is pressed. <Direction> must evaluate to the name of one of the arrow keys: left, right, up, or down.TAIL
L10>LST
MOCELL10
There are not related topics
=INFO
Average FunctionPROP
popupnum
4bkgd
data
Average FunctionTAIL
++TXT
average (<numberlist>)
the average of <numberlist>ADDD
The aver+TXT
The average function returns the average of a series of numbers.TAIL
Type the+TXT
Type the following in the Message Box and press Enter:
average (12, 34, 56, 34, 45)
Oracle Media Objects displays the number 36.2 in the Message Box.TAIL
LL10>LST
MOCELL10
There are no related topics
XINFO
CenterPoint PropertyPROP
popupnum
19bkgd
data
CenterPoint PropertyTAIL
+T+TXT
set the centerPoint of [leg <number> of]
<path> to <x,y>ADDD
PURE+TXT
In the case of circular motion, the centerPoint is used to indicate the center of the circle along which the leg forms an arc. The default is the midpoint of the start and end points of the leg, forming a semicircle.
Notes:
If a leg is not specified, the first leg's centerPoint is set.
The value you set for the centerPoint may be automatically adjusted slightly to ensure that the resulting leg forms a perfect semicircle.TAIL
E+TXT
/data
Applies to circular legs of a path
PURE>LST
MOCELL10
CurveType Propertyrty
CRDHprepare command
CRDHprint card command
CRDHprint topic
;CRDHautotab property
<CRDHaverage function
=CRDHbackcolor property
@INFO
Backup CommandPROP
popupnum
13bkgd
data
Backup CommandTAIL
+T+TXT
backup <movie | path>ADDD
The back+TXT
The backup command backs up a paused (not stopped) digital movie by one frame.
For paths, the backup command backs up a paused (not stopped) path by one tick, possibly causing movement.TAIL
Create a movie and associate it with a movie file. Then create a button and name it
PlayBackward". Put the following handler into the button's script:
on mouseUp
put 3 seconds into frame_pause
pause mov 1
wait 5 seconds
repeat for 5 times
backup mov 1
wait 3 seconds
end repeat
end mouseUp
Type the following into the Message box:
play mov 1
After playing the movie for a few seconds, click on the "PlayBackward" button to play the movie backward. To change the speed of playback, simply modify the number of seconds in the line "wait 3 seconds". You can also alter this code block to work with a path object.TAIL
s +TXT
/data
Applies to movies, paths
L10>LST
MOCELL10
Advance Commandmand
Pause Commandand
AINFO
Beep CommandPROP
popupnum
14bkgd
data
Beep CommandTAIL
beep [<number of beeps>]ADDD
The beep+TXT
The beep command produces a "beep" sound effect through the computer's speaker or audio port.TAIL
Type the+TXT
Type the following in the Message Box and press Enter:
beep
beep 3
The first message causes one beep; the second causes three beeps.TAIL
LL10>LST
MOCELL10
There are no related topics
BINFO
BkgndSize PropertyPROP
popupnum
9bkgd
data
BkgndSize PropertyTAIL
++TXT
set the bkgndSize of <bkgnd> to <x,y>ADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
The bkgndSize property controls background size, determined in x, y coordinates. Changing a background's size changes the size of all cards that share the background.
Notes:
If you reduce the background size, Oracle Media Objects will crop and discard any background painting that extends beyond the new boundaries.TAIL
an+TXT
Go to any card within any stack and type the following in the Message Box and press Enter:
the bkgndsize of this background
The background size of the current background will be returned.TAIL
Applies +TXT
/data
Applies to backgrounds
LL10>LST
MOCELL10
There are no related topics
CINFO
BlindTyping PropertyPROP
popupnum
10bkgd
data
BlindTyping PropertyTAIL
+T+TXT
set the blindTyping to <boolean>ADDD
RE+TXT
NOT AVAILABLE IN THE PLAYER
The blindTyping property allows the user to type entries in the Message Box when it is hidden. To enable this functionality, the blindTyping property must be set to true. By default, blindTyping is set to true.TAIL
PURE+TXT
To see the current value of the blindTyping property, type the following in the Message Box and press Enter:
the blindtyping
To set the blindTyping property to false, type the following in the Message Box and press Enter:
set the blindTyping to falseTAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
There are no related topics
@CRDHbeep command
ACRDHbkgndsize property
BCRDHblindtyping property
DeleteObject MessagePROP
popupnum
10bkgd
data
DeleteObject MessageTAIL
+T+TXT
on deleteObject
end deleteObjectADDD
RE+TXT
The deleteObject system message is generated whenever an object is deleted or cut, immediately before it is deleted.
Notes:
The deleteObject message is purely informational. Intercepting the message with a handler does nothing to prevent the object from being deleted.TAIL
PURE+TXT
Create a button. Place the following handler in the script of the current card and then delete the button.
on deleteObject
put the target && "has been deleted."
end deleteObjectTAIL
PURE+TXT
/data
Sent to the deleted objectTAIL
RE>LST
MOCELL10
Delete {row/col} CommandADDD
YINFO
CenteredWindow PropertyPROP
popupnum
21bkgd
data
CenteredWindow PropertyTAIL
+T+TXT
set the centeredWindow to <boolean>ADDD
Centered+TXT
CenteredWindow determines the location of the card when it is maximized or in Large View.
When the centeredWindow is set to false, the card will appear in the upper left corner of the screen. When centeredWindow is set to true, the card is placed at the center of the screen.TAIL
ate a+TXT
Create a new card. Maximize the card by clicking the maximize button on right side of the card's title bar. Now type the following line in the Message Box and press Enter:
set the windowColor to blue
This will set the color of the unused portion of the screen to blue. Next type the following in the Message Box and press Enter:
set the centeredWindow to trueTAIL
Applies +TXT
/data
Applies to card windows
LL10>LST
MOCELL10
WindowColor PropertyertyADDD
GINFO
BottomRight PropertyPROP
popupnum
13bkgd
data
BottomRight PropertyTAIL
+T+TXT
set the bottomRight of <object> to <x,y>ADDD
The bott+TXT
The bottomRight property determines the position of an object (measured at the bottom right corner) from the top left corner of the card window. The object's bottomRight position is measured in pixels and is expressed as an x, y screen coordinate where x and y are positive integers representing pixels. For the card window, the bottomRight property determines the position of the window from the top left corner of the Oracle Media Objects window.
You can use the bottomRight property to determine or change items 3 and 4 in the rectangle property (top, left, right, bottom) of a specific object.
Notes:
Changing the bottomRight property does not change the size of the object; it changes the object's location.TAIL
Create a+TXT
Create a button and name it "test". Type the following statements in the Message Box and press Enter after each:
get the bottomRight of button "test"
put it into temp
set the bottomRight of button "test" to item 1 of
temp+5, item 2 of temp+5
Oracle Media Objects moves the button 5 pixels down and 5 pixels to the right.TAIL
/data
Applies to all objects, backgrounds, card windows, message box, toolbar
LL10>LST
MOCELL10
Bottom Propertyperty
Left Propertyrtyy
Location (Loc) Property
Rectangle Propertyerty
Right Propertyoperty
Top Propertyerty
TopLeft Propertyerty
HINFO
Breakpoint CommandPROP
popupnum
15bkgd
data
Breakpoint CommandTAIL
+T+TXT
breakpointADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
The breakpoint command causes Oracle Media Objects to halt execution of a script and bring up the script debugger window. Simply enter breakpoint on a line by itself in your script at the place you wish the breakpoint to occur.TAIL
Applies +TXT
/data
Applies to script debugger
0>LST
MOCELL10
Trace Commandndnd
Untrace Commandmand
ECRDHbottom property
FCRDHbottomright property
GCRDHbreakpoint command
?CRDHbackup command
DCRDHblocking property
ICRDHbring closer command
KINFO
Bring Closer CommandPROP
popupnum
16bkgd
data
Bring Closer CommandTAIL
+T+TXT
bring <object> {to front | closer}ADDD
The bring closer command allows you to reposition the specified object within the sequence of all objects that exist on the current card. The to front option repositions the object to the highest, or topmost layer. The closer option brings the object one layer higher, or closer to the top.TAIL
PURE+TXT
/data
Applies to all objects
PURE>LST
MOCELL10
Send Farther CommandmandADDD
LINFO
Brush PropertyPROP
popupnum
14bkgd
data
Brush PropertyTAIL
+T+TXT
set the brush to <number>ADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
The brush property determines the shape of the brush tool. The 32 different brush shapes, as shown in the figure below, correspond to the brush selection dialog from the Settings option under the Graphic menu, or from double-clicking on the Brush tool. The default brush shape is 8.TAIL
e a+TXT
Create a button with the following script:
on mouseUp
choose brush tool
set the brush to 1
drag from 100,100 to 200,200
get the brush
put it into brushshape
add 30 to brushshape
set the brush to brushshape
drag from 318,97 to 440,258
choose browse tool
end mouseUp
Two lines are drawn, each with a different brush style.TAIL
Applies +TXT
/data
Applies to global painting
MOCELL10
Choose Commandmand
MINFO
BusyCursor PropertyPROP
popupnum
16bkgd
data
BusyCursor PropertyTAIL
+T+TXT
set the busyCursor to <cursorname>ADDD
The busyCursor property determines the cursor shape Oracle Media Objects displays while extended processing is occurring.
You can select one of the following values for the busyCursor shape:
spinning beachball
CommandDot
Mac command-key symbol with flashing dot
Count
animated counting hand
Hourglass
animated hourglass
Movie
animated piece of film
Number
numbers 0 through 9
PointerRight
flashing right-arrow pointer
PointerLeft
flashing left-arrow pointer
TalkRight
speech balloon to right with flashing "words"
TalkLeft
speech balloon to left with flashing "words"
Watch
wristwatch with spinning minute hand
World
spinning globe
The default value of the busyCursor property is busy shape.
URE+TXT
Type the following in the Message Box and press Enter:
set the busyCursor to worldTAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
Cursor Propertyerty
Date FunctionPROP
popupnum
12bkgd
data
Date FunctionTAIL
+T+TXT
the [short | long | abbr[ev[iated]]] date
date()ADDD
The date+TXT
The date function returns a string representing the current date set in your machine. The date function is frequently used to store or display a date in a field. By default, the date returns the short date.
The following shows the three forms of the date function.
Form: the short date
Format: 4/18/92
Form: the abbreviated date
the abbrev date
the abbr date
Format: Sat, Apr 18, 1992
Form: the long date
Format: Saturday, April 18, 1992TAIL
Type the+TXT
Type the following into the Message Box and press Enter:
the date
By default, Oracle Media Objects returns the short version, for example, 8/11/93.
Type the following in the Message Box and press Enter:
the abbr date
Oracle Media Objects returns a date in the following format:
Tue, Apr 21, 1992
You can also place the date into a variable. Enter the following two lines in the Message Box and press Enter after each:
put the first item of the abbrev date
into dayofweek
dayofweek
When you type dayofweek, Oracle Media Objects returns:
ELL10>LST
MOCELL10
Convert Commandmand
KCRDHbrush property
LCRDHbuffersize property
NCRDHbusycursor property
Tan FunctionPROP
popupnum
61bkgd
data
Tan FunctionTAIL
tan (<number>)
the tan of <number>ADDD
The tan +TXT
The tan function calculates the tangent of an angle in radians.
Notes:
To calculate the tangent of an angle in degrees, multiply the angle by Pi and divide by 180 before passing it to tan().TAIL
Type the+TXT
Type the following into the Message Box and press Enter:
tan (pi/6)TAIL
MOCELL10>LST
MOCELL10
Atan Functionnction
QINFO
CantModify PropertyPROP
popupnum
18bkgd
data
CantModify PropertyTAIL
+T+TXT
set the cantModify of <object> to <boolean>ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
When set to true, the cantModify object property, prevents the user from modifying an object's properties or contents. The default value of cantModify is false, which allows object modification.TAIL
PURE+TXT
Create a field and name it "test". Type the following in the Message Box and press Enter:
set the cantModify of field "test" to true
Now select the field and try to resize it, make it transparent, or otherwise modify it.TAIL
PURE+TXT
/data
Applies to all objects, cards, backgrounds, stacks
PURE>LST
MOCELL10
CantDelete Propertyd topics
JCRDHwindowtype property
KCRDHwithin operator
LCRDHword text chunk
MCRDHwordwrap property
OCRDHwrite to file command
PCRDH
(line continuation character)
Subtract CommandPROP
popupnum
96bkgd
data
Subtract CommandTAIL
+T+TXT
subtract <number> from <container>ADDD
The subtract command subtracts a number from another number already in a container and puts the total into that container. The value previously stored in the container must be a number; it is replaced by the new value.TAIL
E+TXT
Type the following lines into the Message Box and press Enter after each:
put 40 into difference
subtract 10 from difference
difference
The value "30" is returned to the Message Box.TAIL
MOCELL10
- (Minus) Operator
TINFO
CantUnderstand MessagePROP
popupnum
2bkgd
data
CantUnderstand MessageTAIL
++TXT
on cantUnderstand
end cantUnderstandADDD
When Ora+TXT
When Oracle Media Objects receives a message it cannot interpret, it sends a cantUnderstand message to the current card You can write a handler to intercept this message before a standard "Can't understand" alert box (for example, "Syntax error," "Object not found") appears.
Notes:
Standard Oracle Media Objects alert boxes are often quite useful when debugging scripts because they pinpoint the type and exact location of the script error. However, intercepting the cantUnderstand message prevents Oracle Media Objects from displaying the script error dialog box, so be sure to include the pass command in the cantUnderstand handler.TAIL
Imagine +TXT
Imagine that you have a stack of library handlers called "My_Handlers". The following stack script checks whether a command that Oracle Media Objects could not interpret is contained in "My_Handlers" and then reminds you to library that stack.
on cantUnderStand aaa
if aaa is "my_handler1" or aaa is
"my_handler2" or
aaa is "my_handler3" then
put "You need to library stack " & quote &
"My_Handlers" & quote && "to use" && aaa
else
pass cantUnderStand
end cantUnderStandTAIL
Sent to +TXT
/data
Sent to the current cardTAIL
LL10>LST
MOCELL10
There are no related topics
]INFO
Check MenuItem CommandPROP
popupnum
17bkgd
data
Check MenuItem CommandTAIL
+T+TXT
check menuItem <item>
[of menu <submenu_name>]
of menu <menu_name>ADDD
PURE+TXT
The check menuItem command places a check mark next to the specified item of the indicated menu or submenu.TAIL
E+TXT
Type the following into the Message Box and press Enter after each:
create menu "Colors"
add menuItem "Orange" to menu "Colors"
check menuItem "Orange" of menu "Colors"
Pull down the newly created Colors menu and the Orange option will be checked.TAIL
URE+TXT
/data
Applies to menus
PURE>LST
MOCELL10
Enable Commandm Command
Disable Commandm Command
Uncheck MenuItem CommandADDD
WINFO
Centered PropertyPROP
popupnum
20bkgd
data
Centered PropertyTAIL
+T+TXT
set the centered to <boolean>ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
The centered property determines the origin of geometrical figures drawn with the paint tools.
When the centered property is true, the graphic is drawn starting from its center. It expands outward from its center as it becomes larger in size.
If the centered property is false, the graphic is drawn starting from an imaginary corner. It expands toward the opposite corner as it becomes larger in size.
Notes:
The centered property has the same effect as the Draw Centered option under the Graphic menu.TAIL
RE+TXT
Type the following line in the Message Box and press Enter:
set the centered to true
Now select the Rectangle tool from the Paint toolbar. Draw a rectangle on the card. Notice that Oracle Media Objects draws the rectangle from the center of the shape. Now type the following line in the Message Box and press Enter:
set the centered to false
Draw the rectangle again. This time, however, the shape is drawn from one corner of the shape to the opposite corner.TAIL
PURE+TXT
/data
Applies to global painting
E>LST
MOCELL10
There are no related topics
StartPoint PropertyPROP
popupnum
126bkgd
data
StartPoint PropertyTAIL
+TX+TXT
set the startPoint of [leg <number> of] <path>
to <x,y>ADDD
PURE+TXT
The startPoint property determines where the selected leg begins with respect to the top left corner of the path. Unless you specify a leg, the property applies to the first leg of the path.TAIL
PURE+TXT
/data
Applies to paths, or legs of paths
PURE>LST
MOCELL10
EndPoints Propertyty
^INFO
Choose CommandPROP
popupnum
18bkgd
data
Choose CommandTAIL
+T+TXT
check menuItem <item>
[of menu <submenu_name>]
of menu <menu_name>ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
Issuing the choose command is equivalent to clicking on a tool in the toolbar. See the tool function for a list of valid tool names.
Notes:
When copying and pasting bitmap objects, it is necessary to choose the Browse tool before the Paste operation. Otherwise, Oracle Media Objects copies the graphic inside the object and, within the original object, overlays the copied graphic on the original graphic.TAIL
PURE+TXT
Type the following lines into the Message Box and press Enter after each:
choose text tool
choose rect tool
choose browse tool
Notice that the appropriate tool is selected each time you press Enter.
Alternatively, try this example:
1. Create a bitmap and name it
square_template".
2. Draw a square inside the bitmap. (You can fill in the square with a color, if you prefer.)
3. Create a button and name it
Copier".
4. Add the following handler, which creates a copy of an object, to the button's script:
on mouseUp
select bitmap "square_template"
Copy
choose browse tool
Paste
set the location of the last bmp to 260, 70
end mouseUpTAIL
URE>LST
MOCELL10
Tool Functiontion
+INFO
Trunc FunctionPROP
popupnum
65bkgd
data
Trunc FunctionTAIL
+T+TXT
the trunc of <number>
trunc (<number>)ADDD
Trunc is+TXT
Trunc is a mathematical function that returns the integer part of a number, discarding any decimal fraction.TAIL
Type the following into the Message Box:
put trunc (50.499999) into msg
put trunc (50.5) into msg
put trunc (50.999999999) into msgTAIL
ELL10>LST
MOCELL10
There are no related topics
WCRDHcenteredwindow property
YCRDHcenterpoint property
XCRDHcharacter text chunk
¥INFO
CharToNum FunctionPROP
popupnum
5bkgd
data
CharToNum FunctionTAIL
++TXT
the charToNum of <character>
charToNum(<char>)ADDD
The charToNum function returns the equivalent numerical (ASCII) value of a character.
Notes:
This function is useful for determining the case (upper or lower) of a character: uppercase letters have ASCII values from 65 to 90; lowercase letters have ASCII values from 97 to 122.
If more than one character is passed to charToNum, it returns only the value of the first character.TAIL
PURE+TXT
Create a field and name it "text". Now create a button, name it "CharToNum", and add the following handler to the button's script:
on mouseUp
put the CharToNum of field "text"
end mouseUp
Type a letter, number, or punctuation mark in the field, then click on the button. The equivalent ASCII value appears in the Message Box.TAIL
PURE>LST
MOCELL10
NumToChar Functiontion ADDD
_INFO
Class Name PropertyPROP
popupnum
22bkgd
data
Class Name PropertyTAIL
+T+TXT
the class name of <object>ADDD
The clas+TXT
The class name property returns the class name of the target object. For example, the class name of a button is "button". The user cannot set the class name property.
The following are valid class names:
Background
Bitmap
Button
Card
DataSheet
Field
Group
Movie
Palette
Path
PickList
Shape
Sound
Stack
Timer
Notes:
If you are referring to a class in a script, the class name must be enclosed in quotes. For example:
if the class name of the target is "button" then...TAIL
the +TXT
Add the following handler to a card. When the user clicks on an object, the class name of the object is displayed in the Message Box.
on mouseUp
put the class name of the target
end mouseUpTAIL
Applies +TXT
/data
Applies to all objects
ELL10>LST
MOCELL10
Reference Propertyerty
cINFO
Click At CommandPROP
popupnum
20bkgd
data
Click At CommandTAIL
+T+TXT
click at <x,y> [with optionKey,
shiftKey, commandKey]ADDD
PURE+TXT
The click at command is equivalent to clicking the mouse at a specific location. It can be used to send a mouseUp or mouseDown message to an x,y coordinate in the card window.
Using the [with key] form of click at produces the same effect as clicking the mouse while holding down the specified key or keys.
If <x,y> is in an unlocked field, the insertion point is set; if there is text at or past <x,y>, the insertion point is set at <x,y>. If there is text on the same line as <x,y>, but <x,y> is beyond the end of the text, the insertion point is set at the end of the line of text. If there is no text at <x,y>, the insertion point is set at the start of the line.
You can select a word by double-clicking on it
that is, by executing the click command twice in succession at the location of the word. You can select any string of text by using the click command at the beginning and then click with shiftKey at the end of the string.
Notes:
The mouseDown and mouseUp messages are not sent to unlocked fields when the user clicks in them.TAIL
PURE+TXT
The following handler selects a word from a locked field when the user clicks on the word, and then displays the word in the Message Box. Place the following handler into the script of your locked field:
on mouseUp
set the lockText of me to false
click at the clickLoc
get the selection
put it into clickVar
put "You picked the word" && quote &
clickVar & quote
set the lockText of me to true
end mouseUpTAIL
PURE>LST
MOCELL10
ClickLoc Functiontion
ClickH Functiontion
ClickV Functiontion
MouseClick Functiontion
MouseDown Messagesage
MouseUp Messagesage
¥CRDHcheck menuitem command
]CRDHchoose command
^CRDHclass name property
VCRDHcentered property
[CRDHchartonum function
`CRDHclear command
SetRandomSeed CommandPROP
popupnum
90bkgd
data
SetRandomSeed CommandTAIL
+T+TXT
setRandomSeed <number>ADDD
The setR+TXT
The setRandomSeed command allows the developer to seed the random number generator to ensure a predictable sequence for testing purposes.TAIL
L10>LST
MOCELL10
Random Functiontion
jINFO
CloseCell MessagePROP
popupnum
5bkgd
data
CloseCell MessageTAIL
++TXT
on closeCell [<row>] [,<col>]
end closeCellADDD
PURE+TXT
A closeCell message is generated when the cursor leaves a previously selected dataSheet cell whose contents have changed. The message includes two optional integer parameters, <row> and <col>, which indicate the region of the dataSheet that the cursor left. The upper left cell of the dataSheet has a <row> of 1 and a <col> of 1. Note that this message is not sent if the data in the cell remains unchanged since it was opened.
This message is sent only in Browse mode.
Add the following handler to a dataSheet object:
on closeCell closeRow, closeCol
answer "The contents of cell (" & closeRow &"," & closeCol & ") have changed" with "OK"
end closeCell
Whenever the user leaves a cell that has been modified, this handler displays a dialog box informing him or her that the contents have been changed.
The following datasheet handler copies the contents of the current cell into a cell of the same row and column number residing on the background:
on closeCell rownum, colnum
put cell rownum, colnum of me into
cell rownum, column of bg datasheet 1
end closeCell
PURE+TXT
/data
Sent to an unlocked dataSheetTAIL
PURE>LST
MOCELL10
LockText Propertyerty
OpenCell Messagesage
dINFO
ClickH FunctionPROP
popupnum
6bkgd
data
ClickH FunctionTAIL
++TXT
the clickH
clickH()ADDD
The clic+TXT
The clickH function returns the horizontal pixel position of the most recent mouse click relative to the left side of the card window.TAIL
locat+TXT
To locate the horizontal position of the last mouse click, type the following line in the Message Box and press Enter:
the clickHTAIL
MOCELL10>LST
MOCELL10
ClickLoc Functiontion
ClickV Functiontion
Click At Commandd
Delete Menu CommandPROP
popupnum
37bkgd
data
Delete Menu CommandTAIL
+T+TXT
delete menu <menu_name>ADDD
The dele+TXT
The delete menu command deletes the user-defined menu <menu_name> and all of its submenus. Only user-defined menus may be deleted. Submenus may not be deleted using this command.TAIL
To creat+TXT
To create a menu, type the following statement in the Message Box and press Enter:
create menu "Colors"
Issue the following command to delete the menu:
delete menu "Colors"TAIL
Applies +TXT
/data
Applies to menus
MOCELL10>LST
MOCELL10
Add Menu Commandmand
Add MenuItem Commandmand
Create Menu Commanddmman
MenuItems Propertyerty
bCRDHclick at command
cCRDHclickh function
dCRDHclickloc function
gINFO
ClickV FunctionPROP
popupnum
8bkgd
data
ClickV FunctionTAIL
++TXT
the clickV
clickV()ADDD
The clic+TXT
The clickV function returns the vertical pixel position of the most recent mouse click relative to the top of the card window.TAIL
To locat+TXT
To locate the vertical position of the last mouse click, type the following in the Message Box and press Enter:
the clickV
The coordinate is returned in the Message Box.TAIL
MOCELL10>LST
MOCELL10
Click At Commandd
ClickH Functiontion
ClickLoc Functiontion
hINFO
CloseBackground MessagePROP
popupnum
3bkgd
data
CloseBackground MessageTAIL
++TXT
on closeBackground
end closeBackgroundADDD
Oracle M+TXT
Oracle Media Objects sends the closeBackground message to the current card just before the user leaves the current background. This message can be used to carry out certain activities when leaving a background.TAIL
Sent to +TXT
/data
Sent to the current cardTAIL
LL10>LST
MOCELL10
LockMessages Propertyerty
OpenBackground Messagesage
CloseCard Messagesage
CloseField Messagesage
CloseStack Messagesage
OpenCard Messagesage
OpenStack Messagesage
lINFO
CloseField MessagePROP
popupnum
6bkgd
data
CloseField MessageTAIL
++TXT
on closeField
end closeFieldADDD
PURE+TXT
Oracle Media Objects sends the closeField message to an unlocked field when the cursor leaves the field. This message is only sent if the contents of the field have been changed by typing or cutting and pasting.TAIL
PURE+TXT
The following example illustrates one way to notify the user that a field's data has been modified:
The following example illustrates one way to notify the user that a field's data has been modified:
1. Create a field and name it
Modified".
2. Type the following in the Message Box and press Enter:
add property lastModDate
to field "Modified"
3. Place the following handler in the script of the field:
add property lastModDate to
field "Modified"
on closeField
set the lastModDate of me to the date
put the lastModDate of me into msg
end closeField
4. Enter something in the field and press Tab or click on another object.
Today's date will appear in the Message Box.TAIL
PURE+TXT
/data
Sent to an unlocked fieldTAIL
URE>LST
MOCELL10
OpenField Messagesage
ECRDHwidemargins property
FCRDHwidth property
GCRDHwindowcolor property
3CRDHunits property
8CRDHuselegscaling property
>CRDHvisible property
CCRDHwait command
ICRDHwindowtitle property
gCRDHclose file command
mCRDHclose printing command
nCRDHclosebackground message
qINFO
ColDelim PropertyPROP
popupnum
23bkgd
data
ColDelim PropertyTAIL
+T+TXT
set the colDelim of <dataSheet> to <character>ADDD
PURE+TXT
The colDelim property specifies the character to be used as a column delimiter for data imported into the dataSheet. You can specify any single character as a valid delimiter. The default value of character is ^t, or tab.
Notes:
Setting the colDelim property to a new value changes the current set of columns in the dataSheet. The dataSheet is updated after the property is set, so unexpected changes will be immediately visible.
When the user is directly editing a cell of a dataSheet, entering the current row
delimiter character will move the cell down one row; entering the column
delimiter will move the cell to the right. The Enter key will always move the insertion point one cell to the right; shift
Enter will move the insertion point one cell to the left. In addition, the user can always move the insertion point in any direction by using the arrow keys.TAIL
RE+TXT
Create a dataSheet and name it
test". Type the following in the Message Box and press Enter:
set the colDelim of dataSheet "test" to "-"TAIL
E+TXT
/data
Applies to datasheets
PURE>LST
MOCELL10
RowDelim Propertyerty
Sort Commandperty
CRDHpolysides property
CRDHpop command
CRDHpopup command
CRDHplaystarted message
CRDHplaystopped message
CRDHplaystyle property
nINFO
Close Printing CommandPROP
popupnum
22bkgd
data
Close Printing CommandTAIL
+T+TXT
close printingADDD
PURE+TXT
The close printing command ends a print job that was initiated with the open printing command. Close printing must be used with open printing.
Notes:
Nothing is actually printed after open printing is issued until the close printing command is executed.TAIL
PURE+TXT
Create a button called
Print Copies" and place the following handler into its script:
on mouseUp
ask "Print how many copies of this card?"
with 1
put it into numcopies
open printing
repeat numcopies times
print this card
end repeat
close printing
end mouseUpTAIL
E>LST
MOCELL10
Open Printing Command] <application> Command
Print Card Commandandd
ControllerVisible PropertyPROP
popupnum
30bkgd
data
ControllerVisible PropertyTAIL
T+TXT
set the controllerVisible of <movie> to <boolean>ADDD
E+TXT
The controllerVisible property allows the developer to attach a controller to any movie style. A value of true means that the controller is visible. A value of false means that the controller is not visible.
The default value of controllerVisible is false.
Notes:
You cannot modify a movie's style while controllerVisible is set to true. You also cannot set controllerVisible while the movie's style is set to control.
If you change the size of the movie's rectangle after setting the controllerVisible to true, the controller will take up part of the new rectangle instead of attaching to the movie object. This means that if you then set controllerVisible to false after resizing the rectangle, you will lose that part of the rectangle that was occupied by the controller.
The controllerVisible property cannot be modified from either the toolbar or the info dialog box; it is available through scripting only.TAIL
URE+TXT
/data
Applies to movies
PURE>LST
MOCELL10
Rectangle Propertyerty
TextStyle Propertyty
iCRDHclosecell message
jCRDHclosefield message
lCRDHclosestack message
Cut CommandPROP
popupnum
32bkgd
data
Cut CommandTAIL
T+TXT
cutADDD
The cut +TXT
The cut command cuts the currently selected object, and is the equivalent of the Cut menu item on the Edit Menu.TAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Clear Commandelated topics
Save [a] Copy as <filename> Command
Copy Commandd
Copy Card Command
Create Card Command
Paste Command
Paste Card Command
rINFO
ColNames PropertyPROP
popupnum
24bkgd
data
ColNames PropertyTAIL
+T+TXT
set the colNames of <pickList | dataSheet>
to <list of names>ADDD
The colN+TXT
The colNames property specifies the actual text of a pickList or dataSheet's column names. The <list of names> must be return delimited. The colNames property returns only nondefault column names, until the last user-defined name is retrieved. By default, columns are named col 1, col 2, col 3, and so on. If you rename col1 "Apples" and rename col 3 "Pears", colNames will retrieve "Apples", an empty line, and "Pears". Setting colNames to empty resets all column names to their default names.TAIL
Create a+TXT
Create a pickList that is three columns wide and and call it
test". Type the following in the Message Box and press Enter:
set the colNames of pickList "test" to
"Apples" & return & "Oranges" &
return & "Pears"TAIL
Applies +TXT
/data
Applies to datasheets, picklists
MOCELL10>LST
MOCELL10
There are no related topics
CRDHplaynumber property
CRDHplayrate property
CRDHplayrepeated message
CRDHquit message
CRDHrectangle property
CRDHreleasestack message
!CRDHmatchedrows function
"CRDHmax function
$CRDHme special container
%CRDHmember chunk expression
$INFO
Max FunctionPROP
popupnum
28bkgd
data
Max FunctionTAIL
max (<number list>)ADDD
The max +TXT
The max function returns the highest numeric value in a list of numbers.
Notes:
If the source of a list of numbers is a container that includes multiple lines or items, max looks only at the first line or item of the container.TAIL
pe the+TXT
Type the following in the Message Box and press Enter:
max (10, 20, 30)
The value 30 is returned.TAIL
OCELL10>LST
MOCELL10
Min Functiontion
Average Functiontion
%INFO
Me Special ContainerPROP
popupnum
2bkgd
data
Me Special ContainerTAIL
++TXT
meADDD
Me contains a generic reference to the object that owns the script that is currently being executed.TAIL
The members property determines which objects are contained by a particular group object. The value of the members property is a return-delimited list of references to each object contained by the group.
The following is a legal use of the members property:
set the members of group id 1 to the reference
of card btn 1 & return & the reference of fld 3
Because the list you specified was return delimited, you cannot get the full list returned to the Message Box. To get the values of a group with more than one member, create a field named "container" and type the following into the Message Box:
put the members of grp 1 into fld "container"
You can also set the members property to a return-delimited list of object references contained in another object, or in a variable. For example:
set the members of group id 1 to field 3
set the members of group id 1 to myGroup
Notes:
You must set the members property to a reference of an object; otherwise Oracle Media Objects assumes that you wish to set the value of the members property to the data contained within the object. For instance, the following statement results in an "Object has no data" error message:.
set the members of group id 1 to button 1
A group cannot be a member of another group.TAIL
PURE+TXT
/data
Applies to groups
PURE>LST
MOCELL10
The member chunk
'INFO
MenuItems PropertyPROP
popupnum
69bkgd
data
MenuItems PropertyTAIL
+T+TXT
set the menuItems of [menu
<submenu_name> of] menu <menu_name>
to <list>ADDD
The menu+TXT
The menuItems property determines the items in a user-defined menu or submenu. The menuItems property is a list of item names separated by carriage returns. The default value is an empty character string. Each item can contain up to 31 characters.
The following list summarizes the special characters that can be used when adding a menu item:
Character: (
Meaning: Item created disabled
Example: "(Next"
Character: /
Meaning: Accelerator key to follow
Example: "Delete/D"
Character: &
Meaning: Character key equivalent to follow (MS-Windows only)
Example: "&Previous" or "Pr&evious"
Character: ;
Meaning: Multiple items created
Example: "First;Last;Recent"
Notes:
You cannot retrieve the items in a menu or submenu using the menuItems property.
You can add duplicate entries to a menu, but only the first entry can be affected by other scripting commands such as enable and disable.
You cannot create your own File or Edit menus, nor can you delete or modify anything on the existing File or Edit menus.TAIL
Place th+TXT
Place the following handler in the script of a stack.
on openStack
create menu "Presidents"
put "Washington" into the_items
put return&"Lincoln/L" after the_items
put return&"&Kennedy" after the_items
put return&"(Nixon" after the_items
put return&"Clinton" after the_items
set the menuItems of menu "Presidents" to the_items
end openStack
Close the stack and then reopen it. You should see a new menu, "Presidents", with the following menu items: "Washington", "Lincoln" (with accelerator key "L"), "Kennedy" (with character equivalent "K"), "Nixon" (disabled), and "Clinton".TAIL
Applies +TXT
/data
Applies to menus
MOCELL10>LST
MOCELL10
Add Menu Commandmand
Add MenuItem Commandmand
Create Menu Commanddmman
Delete Menu CommandmmandADDD
&CRDHmenuitems property
'CRDHmessage box special container
CRDHmessagedroptime property
*CRDHmessages property
CCRDHnewbackground message
ICRDHnext repeat control statement
NCRDHnumber function
SCRDHon control statement
YCRDHopenfield message
cCRDHoverlaid property
UINFO
Offset FunctionPROP
popupnum
40bkgd
data
Offset FunctionTAIL
+T+TXT
offset (<substring>, <string>)ADDD
PURE+TXT
The offset function locates the first occurrence of <substring> within <string> and returns the location as the number of the character in <string> where <substring> begins. The offset function is case insensitive.
If <substring> is not found, the offset function returns 0. Either text string can be specified directly or via a container (variable, field, or property).
Notes:
The parameters passed to the offset function can both be arithmetic and logical (as well as text) expressions; after evaluation, the results are treated as strings.TAIL
PURE+TXT
Create a button and put the following handler into the button script:
on mouseUp
put offset ("i", "children") into message
end mouseUp
When you click this button on the button, the number 3 appears in the message box.TAIL
PURE>LST
MOCELL10
There are no related topics
CRDHremove property command
CRDHrepeat control statement
CRDHrepeat forever
VCRDHopen [<doc> with] <app> command
XCRDHopen file command
ZCRDHopen printing command
[CRDHopenbackground message
¥CRDHopencard message
]CRDHopencell message
CRDHlockmessages property
CRDHmatchedcols function
#CRDHmembers property
MINFO
NoEvents PropertyPROP
popupnum
76bkgd
data
NoEvents PropertyTAIL
+T+TXT
set the noEvents of <shape> to <boolean>ADDD
NoEvents+TXT
NoEvents is a shape property that, when true, causes a shape to ignore mouse events as if the object were hidden. Mouse messages are sent to the object immediately beneath the shape, if any. If noEvents is true, a shape will not be highlighted automatically, even if the shape's autoHilite property is true.TAIL
reate a+TXT
Create a new shape and name it
test". Put the following handler into the script of the shape:
on mouseUp
beep
end mouseUp
Click on the shape while in Browse mode; the computer beeps. Type the following in the Message Box and press Enter:
set the noEvents of shape "test" to true
Click on the shape again. The computer does not respond with a beep because the noEvents property has prevented the shape from receiving the mouseUp message.TAIL
Applies +TXT
/data
Applies to shapes
MOCELL10>LST
MOCELL10
There are no related topics
/INFO
Mod FunctionPROP
popupnum
31bkgd
data
Mod FunctionTAIL
<number> mod <number>ADDD
The mod +TXT
The mod function returns the remaining numeric value resulting from the division of one number by another. The mod and the related div operator can be used to divide a number and obtain an integer and a remainder.TAIL
calcu+TXT
To calculate the number of years, months, and days contained in 7,498 days, type the following lines in the Message Box and press Enter after each:
put 7498 div 365 into years
put 7498 mod 365 into dummy
put dummy div 30 into months
put dummy mod 30 into days
To view Oracle Media Objects calculations, type the following lines in the Message Box and press Enter after each:
years
months
days
Oracle Media Objects returns (respectively):
20, 6, 18TAIL
MOCELL10>LST
MOCELL10
Div Operator Operator
wCRDHplaycounter property
xCRDHplaydirection property
yCRDHplayduration property
rCRDHpick command
sCRDHplatform function
tCRDHplay command
,INFO
Milliseconds (Msecs) FunctionPROP
popupnum
29bkgd
data
Milliseconds (Msecs) FunctionTAIL
+T+TXT
milliseconds ()
the msecsADDD
PURE+TXT
The milliseconds function returns a measure of time in milliseconds, since the last system startup.TAIL
PURE+TXT
Create a button called Milliseconds and place the following mouseDown handler into its script:
on mouseDown
put the milliseconds into startmsecs
repeat until the mouse is up
end repeat
put the msecs into endmsecs
put endmsecs - startmsecs into totalmsecs
put "You held the mouse down for"
&& totalmsecs/1000 && "seconds"
end mouseDown
Now click and hold down the mouse for a few seconds. When you release the mouse, a dialog appears telling you how long you held the mouse down.TAIL
PURE>LST
MOCELL10
Seconds Functionecs) Fun
Ticks Functiontion
Wait Commandmand
-INFO
Min FunctionPROP
popupnum
30bkgd
data
Min FunctionTAIL
min (<number list>)ADDD
The min +TXT
The min function returns the lowest numeric value in a list of numbers.
Notes:
If the source of the list is a container with multiple lines or items, min looks only at the first line or item of the container.TAIL
Type the+TXT
Type the following in the Message Box and press Enter:
min (10, 20, 30)
The value 10 is returned.TAIL
OCELL10>LST
MOCELL10
Max Functiontion
Average Functiontion
,CRDHmin function
-CRDHmod function
/CRDHmouse function
eINFO
OverLaid PropertyPROP
popupnum
78bkgd
data
OverLaid PropertyTAIL
+T+TXT
set the overLaid of <movie> to <boolean>
set the playStyle of <movie> to overLaidADDD
When the value of overLaid is set to true, objects appear on top of the movie during movie playback.
When the value of overLaid is set to false, the movie appears on top of the objects during playback. The false value is recommended whenever objects do not intersect the movie or they are completely transparent.
The overLaid boolean property is an alternative to the playStyle property.
The true value results in reduced playback performance, and is recommended only for small movies.
The overLaid property does not apply if the controller is visible. This means that controllerVisible must be false and the movie's style must not be set to control to use the overLaid property.
PURE+TXT
/data
Applies to movies (Macintosh only)
PURE>LST
MOCELL10
There are no related topics
9INFO
MouseStillDown MessagePROP
popupnum
23bkgd
data
MouseStillDown MessageTAIL
+T+TXT
For dataSheets and charts, dataSheets, pickLists:
on mouseStillDown [<row> [, <col>]]
end mouseStillDown
For bitmaps:
on mouseStillDown [<pixelColors>]
For all other objects:
on mouseStillDown
end mouseStillDownADDD
The mous+TXT
The mouseStillDown system message is sent repeatedly while the mouse button is down. Oracle Media Objects sends this message first to the top nonhidden object clicked on. If that object has no handler for the message, the message continues to travel along the message hierarchy.
If the user clicks in a physical cell of a dataSheet or pickList, two parameters are sent with the mouseStillDown message identifying the row and column of the data that was clicked.
MouseStillDown is always preceded by a mouseDown message.
When mouseStillDown messages are issued, they always alternate with idle messages. This happens so quickly that the messages appear to be sent simultaneously.
Notes:
The mouseStillDown message is not issued if the user places the insertion point or makes a selection in an unlocked field. In this case, all movements of the mouse and all keystrokes are processed directly by Oracle Media Objects.
This message is not sent to the palette, sound, path, or timer.TAIL
The mous+TXT
The mouseStillDown message can be intercepted to implement draggable objects. Create a new button and place the following handler into its script:
on mouseStillDown
set the location of me to the mouseLoc
end mouseStillDown
Enter Browse mode, click on your new button, and move the mouse while holding the mouse button down. The button follows your mouse movements just as it does when being moved in Edit mode.TAIL
Sent to +TXT
/data
Sent to the most recently clicked objectTAIL
LL10>LST
MOCELL10
MouseDown Messagesage
MouseUp Messagesage
)INFO
Trace CommandPROP
popupnum
98bkgd
data
Trace CommandTAIL
+T+TXT
traceADDD
NOT AVAI+TXT
NOT AVAILABLE IN THE PLAYER
The trace command activates the Oracle Media Objects debugger. By default, the debugger is on, but you can deactivate it by typing untrace in the Message Box and pressing Enter. Each time you invoke Oracle Media Objects the script debugger will be activated. If you have deactivated the debugger and wish to reactivate it during the same session, type trace in the Message Box and press Enter.TAIL
es +TXT
/data
Applies to script debugger
MOCELL10
Breakpoint Commandmand
Untrace Commandmand
1CRDHmousedown message
2CRDHmouseenter message
4CRDHmouseh function
HINFO
NewCard MessagePROP
popupnum
27bkgd
data
NewCard MessageTAIL
+T+TXT
on newCard
end newCardADDD
The newC+TXT
The newCard message is generated whenever a card is created.
Notes:
When a new card is created, the openCard message is sent immediately before the newCard message.TAIL
u can +TXT
You can set up a stack to display the current date in a background field each time a new card is created. Create a field on the background and name it
date". Put the following handler into the background or stack script:
on newCard
put the date into background field "date"
end newCardTAIL
+TXT
/data
Sent to all new cardsTAIL
OCELL10>LST
MOCELL10
DeleteCard Messagesage
OpenCard Messagesage
5INFO
MouseH FunctionPROP
popupnum
34bkgd
data
MouseH FunctionTAIL
+T+TXT
the mouseH
mouseH()ADDD
The mous+TXT
The mouseH function returns the current horizontal location of the mouse. The mouse's location is measured in pixels from the left edge of the card window to the mouse pointer.
Notes:
As indicated in the example, the mouseH function can be used in a handler that changes the shape of the cursor, depending on its location on the screen.TAIL
Add the +TXT
Add the following handler to the script of the current card. When the mouse is pressed while the mouse pointer is in the 75-pixel wide strip along the left side of the card, the pointer becomes an I-beam cursor. Otherwise, the cursor is an arrow.
on mouseDown
if the mouseH < 75 then
set the cursor to ibeam
else
set the cursor to arrow
end if
end mouseDownTAIL
0>LST
MOCELL10
Click At Commandd
ClickLoc Functiontion
ClickV Functiontion
MouseLoc Functiontion
MouseV Functiontion
6INFO
MouseLeave MessagePROP
popupnum
22bkgd
data
MouseLeave MessageTAIL
+T+TXT
on mouseLeave
end mouseLeaveADDD
PURE+TXT
The mouseLeave message is sent to the top nonhidden object whose rectangle encompasses the mouse pointer's location whenever the mouse pointer is removed from the physical dimensions of the object. MouseLeave is only sent to a bitmap when the mouse pointer leaves a nonwhite painted area of the object.
Notes:
This message is not issued when the user is entering text in a field or dataSheet. In this case, all movements of the mouse and all keystrokes are processed directly by Oracle Media Objects.TAIL
PURE+TXT
To see the effects of the mouseLeave message, create a bitmap or shape with the following handlers:
on mouseEnter
put hello into msg
end mouseEnter
on mouseLeave
put goodbye into msg
end mouseLeave
Move the cursor over the object and then out of its physical dimensions.TAIL
E+TXT
/data
Sent to all objects, except the palette, sound, path, and timerTAIL
PURE>LST
MOCELL10
LockText Propertyerty
MouseEnter Messagesage
MouseLoc Functiontion
MouseWithin Messagesage
Rectangle Propertyerty
lCRDHpaste command
mCRDHpaste card command
nCRDHpattern property
CRDHtarget special container
CRDHtextalign property
CRDHtextcolor property
6CRDHmouseloc function
7CRDHmousestilldown message
9CRDHmouseup message
?INFO
MovieFile PropertyPROP
popupnum
72bkgd
data
MovieFile PropertyTAIL
+T+TXT
set the movieFile of <movie> to <pathname>ADDD
The movi+TXT
The movieFile property describes the file name of a given movie. This can optionally include the path information of the movie file. Setting the movieFile property of a particular movie associates the movie object with the specified movie file. The file is not opened until a prepare command is issued.
You can set the movieFile property either by using a script as described in the following example or by clicking on the Movie button in the movie Info dialog box.
Notes:
Setting the movieFile of a movie to empty disassociates it from a movie file.
Changing the value of the movieFile in any way causes a release to occur, if the movie is prepared using the prepare command.TAIL
Create a+TXT
Create a movie. Do not associate it with a movie file.
Locate a movie file you wish to associate with the movie. Now type the following statement in the Message Box, replacing the pathname shown with the full pathname of your movie file.
For Windows:
set the movieFile of movie 1 to
"c:¥movies¥mymovie.mov"
For Macintosh:
set the movieFile of movie 1 to
"Macintosh HD:Movies:My Movie"TAIL
Applies +TXT
/data
Applies to movies
MOCELL10>LST
MOCELL10
Prepare Commandand
Release CommandCommand
@INFO
MovieTypes FunctionPROP
popupnum
37bkgd
data
MovieTypes FunctionTAIL
+T+TXT
the movieTypes
or
movieTypes ()ADDD
The movi+TXT
The movieTypes function returns a carriage return-delimited list of the supported movie formats available on the machine on which the Oracle Media Objects application is running; the list is empty if no formats are available.
This function is useful for checking whether or not QuickTime is installed on a particular machine.
Notes:
QuickTime is currently the only supported movie format on Macintosh and Windows. Oracle Media Objects is backwards compatible with previous QuickTime versions. Future QuickTime versions will also be implemented.TAIL
he foll+TXT
The following button script checks to ensure that QuickTime is installed before playing a movie:
on mouseUp
put movieTypes () into supported_formats
if "QuickTime" is in supported_formats then
play movie 1
else
answer "QuickTime not available on
this machine."
end if
end mouseUpTAIL
+TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
There are no related topics
;INFO
MouseV FunctionPROP
popupnum
36bkgd
data
MouseV FunctionTAIL
+T+TXT
the mouseV
mouseV()ADDD
The mous+TXT
The mouseV function returns the current vertical location of the mouse. The location is measured in pixels from the top edge of the card to the mouse pointer.
Notes:
As indicated in the example, the mouseV function can be used to change the shape of the cursor, depending on its location on the screen.TAIL
Add the +TXT
Add the following handler to the script of the current card. When the mouse button is pressed while the mouse pointer is in the 75-pixel-wide strip along the top of the card, the pointer becomes an I-beam cursor. Otherwise the cursor is an arrow.
on mouseDown
if the mouseV < 75 then
set the cursor to ibeam
else
set the cursor to arrow
end if
end mouseDownTAIL
0>LST
MOCELL10
ClickH Functionand
ClickLoc Functiontion
ClickV Functiontion
MouseLoc Functiontion
MouseH Functiontion
<INFO
MouseWithin MessagePROP
popupnum
25bkgd
data
MouseWithin MessageTAIL
+T+TXT
on mouseWithin
end mouseWithinADDD
URE+TXT
The mouseWithin message is sent repeatedly to an object whenever the mouse is within the object's on-screen dimensions and the mouse button is not pressed.
This message is always preceded by a mouseEnter message.
When mouseWithin messages are issued, they always alternate with idle messages. This happens so quickly that the messages appear to be sent simultaneously. MouseWithin is only sent to a bitmap when the mouse pointer rests on a nonwhite painted area of the object.TAIL
PURE+TXT
Create a shape with the following script:
on mouseWithin
beep
end mouseWithin
Return to Browse mode and move the mouse pointer within the area of the shape.TAIL
PURE+TXT
/data
Sent to all objects, except the palette, sound, path, and timerTAIL
PURE>LST
MOCELL10
MouseEnter Messagesage
MouseLeave Messagesage ADDD
;CRDHmousewithin message
<CRDHmoviefile property
?CRDHmovietypes function
.CRDHmouseclick function
3CRDHmouseleave message
8CRDHmousev function
DINFO
Multiply CommandPROP
popupnum
60bkgd
data
Multiply CommandTAIL
+T+TXT
multiply [<chunk> of] <container> by <source>ADDD
PURE+TXT
There are two ways to multiply two numbers: the multiply command and the * operator.
Multiply multiplies the value in [<chunk> of] <container> by the value of <source> and puts the result into [<chunk> of] <container>.
Notes:
The value previously stored in <container> must be a number; the value is then replaced with the new value.
The result is calculated to a precision of up to 19 decimal places.TAIL
PURE+TXT
Create a field and name it
test". Type the following lines in the Message Box and press Enter after each:
put 5 into field "test"
multiply field "test" by 6
30 appears in field "test".TAIL
PURE>LST
MOCELL10
* (Multiplication) Opera@
gINFO
ParamCount FunctionPROP
popupnum
43bkgd
data
ParamCount FunctionTAIL
+T+TXT
the paramCount
paramCount()ADDD
URE+TXT
The paramCount function returns the number of values that were passed to the currently-executing handler or function. The number returned does not relate in any way to the number of parameter names listed in the on or function statement.TAIL
PURE+TXT
Create a button and name it
Paramcount". Put the following handlers into the button script:
on mouseUp
paramtest "A", "B"
end mouseUp
on paramtest param1, param2, param3
put the paramCount into msg
end paramtest
Return to Browse mode and click on the "Paramcount button". The result is 2, which is number of values passed to the handler.TAIL
PURE>LST
MOCELL10
Param Functionntion
Params Functiontion
QINFO
Number PropertyPROP
popupnum
77bkgd
data
Number PropertyTAIL
+T+TXT
the number of <object>ADDD
The read+TXT
The read-only number property is used to retrieve the number of a particular object. For all objects other than cards, backgrounds, and stacks, the number property refers to the object's position in the layer order relative to all other objects of the same type in the same layer. Objects closer to the back have lower numbers; objects nearer to the front have higher numbers.
For cards and backgrounds, the number property refers to the object's position in the stack relative to other cards or backgrounds in sequential order (i.e., the order followed when navigating to the next or previous cards).
Notes:
You can change the number of an object from a script using the send farther and bring closer commands.TAIL
Type the following in the Message Box and press Enter:
put the number of the last card in this stack
into cardCountTAIL
es +TXT
/data
Applies to all objects, backgrounds, cards
0>LST
MOCELL10
Bring Closer Commandmand
ID Propertyrtyoperty
ShowName Propertyy
Send Farther CommandmandADDD
BINFO
MultiHilite PropertyPROP
popupnum
74bkgd
data
MultiHilite PropertyTAIL
+T+TXT
set the multiHilite of <pickList | dataSheet>
to <boolean>ADDD
RE+TXT
The multiHilite property determines whether multiple rows of a pickList or dataSheet can be selected simultaneously. The default value is true (multiple rows can be selected).
If multiHilite is false, only one row can be selected at one time.TAIL
PURE+TXT
The following button script highlights rows 1 through 3 of the pickList
October Revenues", first ensuring that multiple rows can be highlighted:
on mouseUp
set the multiHilite of pickList
"October Revenues" to true
set the hilite of row 1 to 3 of pickList
"October Revenues" to true
end mouseUpTAIL
E+TXT
/data
Applies to datasheets, picklists
PURE>LST
MOCELL10
AutoHilite Propertyerty
MultiHilite Property
HilitedRows Functiontion
Select Commandmand
ACRDHmultihilite property
BCRDHmultiply command
DCRDHname property
LINFO
Next Repeat Control StatementPROP
popupnum
8bkgd
data
Next Repeat Control StatementTAIL
++TXT
next repeatADDD
PURE+TXT
The next repeat control statement allows you to make an exception to a loop's normal operation. next repeat causes script execution to jump to the beginning of the current loop, skipping the commands between itself and the end repeat statement. If the loop has an index, it is incremented normally.TAIL
The following button script illustrates the next repeat control statement. Create a field and name it
test". Now create a button on the same card with the following script:
on mouseUp
repeat with i =1 to 5
if i=3 then next repeat
put i after field "test"
end repeat
end mouseUp
Return to Browse mode and click on the button you created to see the results of the script.TAIL
URE>LST
MOCELL10
The exit repeat control statement
Repeat Control Statementment
XINFO
Open [<doc> with] <app> CommandPROP
popupnum
63bkgd
data
Open [<doc> with] <app> TAIL
open [<document> with] <application>ADDD
The open+TXT
The open <application> command opens an application and, optionally, a document that can be read by the opened application.
Upon quitting the application, Oracle Media Objects returns the user to the card displayed when the open command was executed.
When using the open <application> command, it is important to use complete path information for any application or document not in the current stack's directory or on the system path.
Notes:
The application path name length and the document name length are each limited to 63 characters, not including the enclosing quotation marks. Thus, the maximum length of the entire open <application> command string is:
Length: 70 characters
Syntax: open <application>
Length: 141 characters
Syntax: open <document> with <application>
Because MS-Windows 3.1 and Macintosh System 7.x are multitasking systems, Oracle Media Objects scripts will usually continue to execute concurrently with other opened applications. However, the amount of time allotted to Oracle Media Objects will depend upon the foreground application.TAIL
Windo+TXT
In Windows, to open Microsoft Excel from a directory on the D: drive named
Excel," the correct syntax would be:
open "d:¥excel¥excel.exe"
On the Macintosh, to open Microsoft Excel from a folder named "Excel" on a volume named "Macintosh HD," the correct syntax would be:
open "Macintosh HD:Excel:Microsoft Excel"TAIL
MOCELL10>LST
MOCELL10
There are no related topics
FINFO
NewBackground MessagePROP
popupnum
26bkgd
data
NewBackground MessageTAIL
+T+TXT
on newBackground
end newBackgroundADDD
The newBackground message is generated whenever a background is created.TAIL
PURE+TXT
/data
Sent to all new backgroundsTAIL
E>LST
MOCELL10
DeleteBackground Messagesage
Sqrt FunctionPROP
popupnum
58bkgd
data
Sqrt FunctionTAIL
+T+TXT
the sqrt of <number>
sqrt (<number>)ADDD
The sqrt+TXT
The sqrt function calculates the square root of a number. If you try to calculate the square root of a negative number, the result is NAN (Not A Number).TAIL
4)+TXT
sqrt (4)
sqrt (2)
the sqrt of 5TAIL
MOCELL10>LST
MOCELL10
There are no related topics
FCRDHnewcard message
HCRDHnewobject message
JCRDHnewstack message
JINFO
NewObject MessagePROP
popupnum
28bkgd
data
NewObject MessageTAIL
+T+TXT
on newObject
end newObjectADDD
The newO+TXT
The newObject message is generated whenever an object is created, copied (by pressing the Alt or Option key while dragging on the object), or pasted.TAIL
dd the +TXT
Add the following handler to a card to display a message whenever a new object is created on the card:
on newObject
put "A new object has been created."
end newObjectTAIL
+TXT
/data
Sent to the new objectTAIL
CELL10>LST
MOCELL10
Create Commandommandmman
DeleteObject MessagesageADDD
KINFO
NewStack MessagePROP
popupnum
29bkgd
data
NewStack MessageTAIL
+T+TXT
on newStack
end newStackADDD
The newS+TXT
The newStack message is generated whenever a stack is created.
When a new stack is created, the openStack message is followed immediately by the newStack message.TAIL
Sent to +TXT
/data
Sent to all new stacksTAIL
CELL10>LST
MOCELL10
OpenStack Messagesage
Push CommandPROP
popupnum
75bkgd
data
Push CommandTAIL
push [<this>] <card>ADDD
The push+TXT
The push command marks a specific card so that it can be relocated quickly. To navigate to the marked card, issue the pop command.
Push and Pop access a normal Last-In-First-Out (LIFO) stack. Cards are popped from the stack in the reverse order in which they were pushed.TAIL
When pla+TXT
When placed into the script of a background button, takes the user to the
Test" stack. The pop command can be used to return the user to the card and stack from which the push command was issued.
on mouseUp
push this card
go to stack "test"
end mouseUpTAIL
LL10>LST
MOCELL10
Pop Commandommand
Scroll MessagePROP
popupnum
42bkgd
data
Scroll MessageTAIL
+T+TXT
on scroll <orientation>
end scrollADDD
A scroll message is generated whenever a scrollbar of a dataSheet, pickList, dataSheet,, or field is clicked. The parameter <orientation> can be either H or V, denoting whether the horizontal or vertical scrollbar was clicked. No parameter is sent when the scroll message is sent to a field.TAIL
PURE+TXT
/data
Sent to dataSheets, fields pickListsTAIL
PURE>LST
MOCELL10
There are no related topics
LCRDHnoevents property
MCRDHnolibrary
CRDHnot operator
SizeBox PropertyPROP
popupnum
122bkgd
data
SizeBox PropertyTAIL
+TX+TXT
set the sizeBox to <boolean>ADDD
PURE+TXT
On the Macintosh, the sizeBox property determines whether a size box is displayed in the lower right corner of the card window.
Notes:
The state of the sizeBox property has no effect in Microsoft Windows.TAIL
PURE+TXT
Typing the following line in the Message Box and pressing Enter returns a Boolean value reflecting whether a size box is displayed:
the sizeBox
PURE>LST
MOCELL10
ScrollBars Propertyerty
ScrollFrame PropertyertyADDD
PINFO
Number FunctionPROP
popupnum
39bkgd
data
Number FunctionTAIL
+T+TXT
the number of <components> [in | of <location>]
number(<components> [in | of <location>])ADDD
PURE+TXT
The number function can be used to count a variety of components. This function is particularly useful when you want to script an action that depends on the quantity of a particular type of object, or if you want to control a loop affecting each of the components in turn.
The following list indicates which components can be counted in which location.
Note that when counting objects, if you omit the [in <location>] clause, the current card is used as the context for counting. When counting cards or backgrounds, if you omit the [in <location>] clause, the current stack is used as the context.
The statement the number of <objects> is equivalent to the statement the number of the last <object>.TAIL
RE+TXT
Type the following statements into the Message Box and press Enter after each:
the number of cards
the number of words in field "Names"
the number of words in "Hello there!"
the number of characters in word 1 of bg fld ID 12
number(buttons in this card)
number(fields)TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
List Functiontion
StartUp MessagePROP
popupnum
44bkgd
data
StartUp MessageTAIL
+T+TXT
on startUp
end startUpADDD
The star+TXT
The startUp system message is sent when the Oracle Media Objects application is invoked. The startUp message is sent to the first card of the first stack that Oracle Media Objects opens up.TAIL
This exa+TXT
This example performs some
housekeeping" activities when Oracle Media Objects starts up.
on startUp
put "Oracle Media Objects started at" &&
the time && "on" && the date && "with"
&& the name of this stack
pass startUp
end startUpTAIL
/data
Sent to the first card of the stack opened when Oracle Media Objects is invokedTAIL
MOCELL10>LST
MOCELL10
Pass Control Statement
RINFO
NumToChar FunctionPROP
popupnum
38bkgd
data
NumToChar FunctionTAIL
+T+TXT
the numToChar of <ASCII value>
numToChar(<ASCII value>)ADDD
PURE+TXT
This function translates an ASCII number into its corresponding character.
This function is the opposite of the charToNum function.TAIL
PURE+TXT
Type the following lines in the Message Box and press Enter after each:
the numToChar of 20
numToChar(123)TAIL
PURE>LST
MOCELL10
CharToNum Functiontion
PCRDHnumber property
QCRDHnumtochar function
RCRDHoffset function
|CRDHplayforever property
}CRDHplaylist property
~CRDHplaymode property
oCRDHpause command
uCRDHplay file command
zCRDHplayeffects property
Sin FunctionPROP
popupnum
57bkgd
data
Sin FunctionTAIL
the sin of <number>
sin(<number>)ADDD
The sin(+TXT
The sin() function calculates the sine of an angle in radians.
Notes:
To calculate the sine of an angle in degrees, multiply the angle by Pi and divide by 180 before passing it to sin().TAIL
Type the following into the Message Box and press Enter:
sin(75)TAIL
MOCELL10>LST
MOCELL10
There are no related topics
PlayMuted PropertyPROP
popupnum
87bkgd
data
PlayMuted PropertyTAIL
+T+TXT
set the playMuted of <movie | sound>
to <boolean>ADDD
The play+TXT
The playMuted property controls whether or not the playing sound or movie is heard. If true, the sound or movie is muted. If false, the sound or movie plays at the current playVolume setting. The value of playMuted has no effect on the playVolume value. The default value of playMuted is false.TAIL
se +TXT
Suppose you want to create a button that mutes/restores a movie's volume, and you want to display an icon graphic while the movie is muted. Add the following handler to the script of button "Mute":
on mouseUp
set the playMuted of movie 1 to not the
playMuted of movie 1
set the visible of bitmap "muteIcon" to
the playMuted of movie 1
end mouseUp
Click the "muteIcon" button several times to see the bitmap appear and then disappear, and to hear the sound muted and then played.TAIL
plies +TXT
/data
Applies to movies, sounds
10>LST
MOCELL10
PlayVolume Propertyrty
VINFO
On Control StatementPROP
popupnum
9bkgd
data
On Control StatementTAIL
++TXT
on <messageName> [<parameter>
[, <parameter> [, <parameter> [...]]]]ADDD
PURE+TXT
The on keyword marks the beginning of a message handler and associates the handler with a particular message. <MessageName> is the message which the handler will intercept.
When an object receives a message, Oracle Media Objects looks at the object's script to see if it contains a handler for the message. If Oracle Media Objects finds a handler, it executes the script statements following the on <messageName> statement. The handler is executed until Oracle Media Objects encounters an exit, end, pass, or return statement.
Notes:
Handlers cannot be nested within other handlers or functions. For example, an on statement cannot appear between another on statement or a function statement and its end statement.
The value you provide for <messageName> must be one word, must begin with a letter, and cannot include any punctuation marks (except underscores). The same holds true for the value provided for <parameter>.
Parameters must be delimited by commas.TAIL
E>LST
MOCELL10
On Control Statement statement
End Control Statementment
The exit control statement
Pass Control Statement
_INFO
OpenCell MessagePROP
popupnum
32bkgd
data
OpenCell MessageTAIL
+T+TXT
on openCell [<row> [,<col>]]
end openCellADDD
The open+TXT
The openCell message is generated whenever a cell of an unlocked dataSheet is opened for editing, either by clicking in the cell or by navigating to the cell using the tab, return, enter, or arrow keys. If the insertion point is already in the cell, this message is not sent. The two integer parameters sent are the <row> and <col> of the opened cell. The upper-left cell of a dataSheet has a <row> of 1 and a <col> of 1.
Notes:
The openCell message does not apply to pickLists.
When the mouse is clicked on the row or column labels of a dataSheet, the following parameters are sent with the mouseUp or mouseDown message: <0, col> (for column labels) and <row, 0> (for row labels).
This message is sent only in Browse mode.TAIL
+TXT
Add the following handler to a dataSheet:
on openCell openRow, openCol
select cell openRow, openCol of the target
Copy
end openCell
Whenever the user clicks on an unlocked cell, the contents of the cell are automatically copied to the clipboard.
The following handler instructs the user after she clicks in a cell:
on openCell
put
Please edit the contents of
this cell..." into fld
directions"
end openCellTAIL
Sent to +TXT
/data
Sent to an unlocked dataSheetTAIL
MOCELL10>LST
MOCELL10
LockText Propertyerty
CloseCell Messagesage
ZINFO
Open File CommandPROP
popupnum
61bkgd
data
Open File CommandTAIL
+T+TXT
open file <filename>ADDD
The open+TXT
The open file command prepares a file to import or export text (or any data treated as text) using the read from file or write to file commands. The filename must include the name of the file, the disk where the file is located, and the path or directory where the file is located (unless the file is in the same directory as Oracle Media Objects). If you do not specify a path, the search is carried out only within the Oracle Media Objects directory.
Notes:
If you specify a <filename> that doesn't exist, Oracle Media Objects will create a new file.
You can open up to 10 files at once.
Files are automatically closed on idle.TAIL
Type the+TXT
Type the following statements into the Message Box and press Enter after each:
open file "test.txt"
write "This is a test." to file "test.txt"
close file "test.txt"
You will now have a file in your Oracle Media Objects directory called "test.txt" that contains the string "This is a test."TAIL
MOCELL10>LST
MOCELL10
Open [<doc> with] <app> Commandtion> Command
Read From File Commandmand
Write To File Commandmand
Close File Commandmand
ResultPROP
popupnum
data
ResultTAIL
the result
result()TAIL
The result function is used in different capacities by many different Oracle Media Talk commands. In general, the value stored in the result indicates whether a command was successful.
The commands that return values to the result are:
close file
convert
open file
read from file
return
Often, if a command executes successfully, the result function returns nothing.
Notes:
If a message handler includes a return statement, the value specified in the return statement is stored in the result.
The value of the result is reset by execution of another command and at the end of the currently executing handler. The value contained in the result is therefore extremely transient and should immediately be saved to another variable if further use is planned for it.TAIL
vari>LST
MOCELL10
The return control statement
CRDHsystemvolume property
CRDHtabkey command
CRDHtabkey message
[INFO
Open Printing CommandPROP
popupnum
62bkgd
data
Open Printing CommandTAIL
+T+TXT
open printingADDD
PURE+TXT
The open printing command, always used in conjunction with the close printing command, marks the beginning of a print job. All print commands issued between open printing and close printing statements are cached until Oracle Media Objects encounters the close printing command. At that point, a single print job is sent to the printer.
Notes:
Open printing can only be used within scripts; you cannot execute the open printing command from the Message Box.TAIL
PURE+TXT
on mouseUp
open printing
print card 1
print card 3
print card 4
close printing
end mouseUp
PURE>LST
MOCELL10
Close Printing Commandmand
Print Card Commandandd
lINFO
Pass Control StatementPROP
popupnum
10bkgd
data
Pass Control StatementTAIL
+T+TXT
pass <message>ADDD
PURE+TXT
The pass control statement is used to interrupt a message handler and pass the message that invoked the handler to the next object in the message-passing hierarchy.
The pass control statement can be used in conjunction with the doMenu message to respond to certain navigational commands. For instance, if the user were on the last card of a stack and chose Last from the Navigation menu, normally nothing would happen. However, the command can be intercepted with a message that tells the user that the current card is the last card.
URE+TXT
To try this, navigate to the last card of a stack and put the following into its script:
on doMenu menuItem
if menuItem is "Last" then answer
"This is the last card"
else pass doMenu
end doMenu
Choose Last from the Navigation menu. The message "This is the last card" appears on the screen. Choosing any other command from the menu bar produces the customary result because you have passed the message up the hierarchy.TAIL
PURE>LST
MOCELL10
There are no related topics
]INFO
OpenCard MessagePROP
popupnum
31bkgd
data
OpenCard MessageTAIL
+T+TXT
on openCard
end openCardADDD
The open+TXT
The openCard system message is sent when the user navigates between cards. This message can be used to initiate an action whenever a card is opened; for example, when using the popup command.
Notes:
When a new card is created, the openCard message is sent immediately before the newCard message. The openCard message is not sent if the global property lockMessages is true.TAIL
a+TXT
Create a stack with two cards, each with a different background. Go to the second card, create a background field called
time", and put the following script into the card or background:
on openCard
tabKey
end openCardTAIL
Sent to +TXT
/data
Sent to the current cardTAIL
LL10>LST
MOCELL10
CloseBackground Messagesage
LockMessages Propertyerty
OpenBackground Messagesage
CloseCard Messagesage
CloseStack Messagesage
NewCard Messageage
OpenStack Messagesage
PlayStarted MessagePROP
popupnum
36bkgd
data
PlayStarted MessageTAIL
+T+TXT
on playStarted
end playStartedADDD
PURE+TXT
The playStarted message is sent to a movie when a user starts a movie by selecting the play button on the controller.. The playStarted message is not sent when a movie is started via a script.TAIL
PURE+TXT
Create a movie object and attach a movie file to it. Put the following handler into the script of the movie:
on playStarted
put "Movie playing..." into msg
end playStarted
on playStarted
put empty into msg
end playStarted
Now when you play the movie from the control bar, a status message appears in the Message Box.TAIL
PURE+TXT
/data
Sent to moviesTAIL
PURE>LST
MOCELL10
EndPlay Commandand
PlayStopped Messageage
Stop Commandand
`INFO
OpenField MessagePROP
popupnum
33bkgd
data
OpenField MessageTAIL
+T+TXT
on openField
end openFieldADDD
PURE+TXT
The openField message is sent to an unlocked field whenever the insertion point enters a field, either by tabbing to it by clicking in its contents, or selecting any part of its contents via a script. The openField message is not sent if the insertion point is already in the field.TAIL
E+TXT
Create a background field named
date" and a background field called
comment". Put the following handler into the script of the
date" field:
on openField
put "Please enter the date" into bg
field "comment"
end openField
Return to Browse mode and click in the "date" field.TAIL
PURE+TXT
/data
Sent to an unlocked fieldTAIL
URE>LST
MOCELL10
There are no related topics
aINFO
OpenStack MessagePROP
popupnum
34bkgd
data
OpenStack MessageTAIL
+T+TXT
on openStack
end openStackADDD
PURE+TXT
The openStack message is sent when the user navigates to a card located in a different stack from the current stack. When a stack is opened, an implicit navigation to its first card occurs and the openStack message is sent.
This message can be used to initiate an action whenever a stack is opened or created. When a new stack is created, the openStack message is followed immediately by the newStack message.TAIL
The following handler could be placed in the script of a stack to make the menu bar invisible whenever that stack is opened:
on openStack
hide menubar
pass openStack
end openStackTAIL
RE+TXT
/data
Sent to the current cardTAIL
PURE>LST
MOCELL10
CloseBackground Messagesage
OpenBackground Messagesage
CloseCard Messagesage
CloseStack Messagesage
NewStack Messageage
OpenCard Messagesage
tINFO
Platform FunctionPROP
popupnum
45bkgd
data
Platform FunctionTAIL
+T+TXT
the platform
platform()ADDD
The plat+TXT
The platform function returns the name of the operating system platform on which Oracle Media Objects is currently running.
If Oracle Media Objects is running on Microsoft Windows, platform returns the string "Windows".
If Oracle Media Objects is running on an Apple Macintosh, platform returns the string "Macintosh".
The platform function is useful in cross-platform applications, where it can be used to ensure that operating-system-specific routines are handled correctly.TAIL
The foll+TXT
The following card handler selects the proper file extension for Oracle Media Objects stacks on the current platform and provides the user with an Open File dialog box that lists only those files:
on openCard
put the platform into current_os
if current_os is "Windows" then
put "STA" into the_extension
else
put "STAK" into the_extension
end if
ask file "Choose a stack to open" for
open of type the_extension
if it is not empty then go to stack it
end openCardTAIL
LL10>LST
MOCELL10
There are no related topics
`CRDHopenstack message
aCRDHoptionkey function
bCRDHor operator
CRDHtextheight property
CRDHtextsize property
CRDHtextstyle property
CRDHticks function
CRDHtime function
!CRDHtimerexpired message
}INFO
PlayForever PropertyPROP
popupnum
84bkgd
data
PlayForever PropertyTAIL
+T+TXT
set the playForever of <movie | path | sound>
to boolean
set the playStyle of <movie | path | sound>
to playForeverADDD
URE+TXT
The playForever property is a boolean property that when set to true causes a movie, path, or sound to play continuously. PlayForever overrides the playNumber property. The default setting is false.
Note: The playForever boolean property is one possible value for the playStyle property of movies, paths, and sounds.TAIL
PURE+TXT
/data
Applies to movies, paths, sounds
PURE>LST
MOCELL10
PlayNumber Propertyrty
PlayStyle Propertyrty
eCRDHparam function
fCRDHparamcount function
gCRDHparams function
CRDHstreamarrived message
CRDHstyle property
CRDHsubtract command
EndSize PropertyPROP
popupnum
42bkgd
data
EndSize PropertyTAIL
+T+TXT
set the endSize of [leg <number> of]
<path> to <x,y>ADDD
The endS+TXT
The endSize property allows you to set the size of an object at the end of its trip down a path or leg of a path. The object is smoothly scaled between the starting size, which you set using the startSize property, and the endSize according to the acceleration profile. <integer, integer> refers to the intended width and height of the object. For example, a value of 100,100 indicates an object that is 100 pixels wide and 100 pixels tall. The default endSize is 100,100.
This property is useful if you want an object to grow or shrink during its journey. This property is particularly important if you are creating three
dimensional effects, in which you need to use object size to present the illusion of distance and perspective on your two
dimensional screen.
You can set the endSize property to apply to either the entire path or to a particular leg. If you want to specify different endSize values for each leg of the path, you must set the playStyle property to uselegScaling.
Notes:
This property only specifies the ending size of the object. To resize the object along the path, you must also enable the scaling property.TAIL
plies +TXT
/data
Applies to paths, legs of paths
MOCELL10>LST
MOCELL10
PlayStyle Propertyrty
StartSize Propertyrty
Scaling Propertyoperty
EnterKey MessagePROP
popupnum
14bkgd
data
EnterKey MessageTAIL
+T+TXT
on enterKey
end enterKeyADDD
The ente+TXT
The enterKey system message is sent when the Enter key is pressed, except while editing text in an unlocked field. If the message is not intercepted, Oracle Media Objects executes the contents of the Message Box. If a field is open for text editing, pressing the Enter key types a return character in the field.
The Return key on the Macintosh keyboard and the Enter key on the PC keyboard are equivalent in Oracle Media Objects. To ensure compatibility, use enterKey on both platforms.TAIL
/data
Sent to the current cardTAIL
LL10>LST
MOCELL10
There are no related topics
Entries PropertyPROP
popupnum
43bkgd
data
Entries PropertyTAIL
+T+TXT
the entries of <palette>ADDD
This pro+TXT
This property returns the list of RGB triples in the palette.TAIL
Applies +TXT
/data
Applies to palettes
MOCELL10>LST
MOCELL10
There are no related topics
CRDHentry chunk
CRDHexistence function
CRDHexit control statement
ShiftKey FunctionPROP
popupnum
56bkgd
data
ShiftKey FunctionTAIL
+T+TXT
the shiftKey
shiftKey()ADDD
The shif+TXT
The shiftKey function determines whether the Shift key is currently pressed. ShiftKey returns up or down.TAIL
ll+TXT
The following example selects everything in a selected field when Shift-Enter is pressed on Windows or Shift-Return is pressed on Macintosh:
on returnInField
if the shiftKey is down then
select text of the target
else
pass returnInField
end if
end returnInFieldTAIL
10>LST
MOCELL10
CommandKey Functiontion
OptionKey Functiontion ADDD
Existence FunctionPROP
popupnum
14bkgd
data
Existence FunctionTAIL
+T+TXT
For all objects:
the existence of <object>
exists(<object>)
For menus:
the existence of {<menu> | <menuitem>}ADDD
E+TXT
The existence function determines whether an object with reference <object>, a menu with reference <menu>, or a menu item with reference <menuitem> currently exists. If the object, menu, or menu item exists, existence returns true. If the object, menu, or menu item does not exist, existence returns false.TAIL
PURE+TXT
The following button script puts the current date into a field named
date" if the field exists. Otherwise, the script returns the date in a dialog box.
on mouseUp
if the existence of fld "date" is true then
put the short date into fld "date"
else
put the short date
end if
end mouseUpTAIL
PURE>LST
MOCELL10
There are no related topics
Exit Control StatementPROP
popupnum
2bkgd
data
Exit Control StatementTAIL
++TXT
exit <messageName>ADDD
The exit control statement allows the user to exit immediately from a handler or subroutine, skipping the remaining commands and statements. The subroutine must be the name of a message handler in which the exit statement resides.TAIL
PURE+TXT
Try the following example to see how the exit command works. Create a button and add the following handler to its script:
on mouseUp
beep 5
exit mouseUp
put "This dialog box will never be seen."
end mouseUp
Click on the button. The exit command causes control to leave the handler before the dialog box can appear.TAIL
URE>LST
MOCELL10
End Control Statementment
On Control Statementment
Pass Control Statement
Exit Repeat Control StatementPROP
popupnum
3bkgd
data
Exit Repeat Control StatementTAIL
ataSCRP
++TXT
exit repeatADDD
PURE+TXT
The exit repeat control statement leaves the current loop structure immediately, skipping the remaining commands and statements in the loop structure. The script continues to be executed starting at the first statement after the next end repeat statement.TAIL
PURE+TXT
To see how exit repeat works, create a button and add the following handler to its script:
on mouseUp
repeat with i = 1 to 5
beep
if i = 3 then exit repeat
end repeat
end mouseUp
When you click on the button, you should hear three beeps.TAIL
PURE>LST
MOCELL10
Next Repeat Control Statementment
Repeat Control Statementment
Exit to Top Control StatementPROP
popupnum
4bkgd
data
Exit to Top Control StatementTAIL
++TXT
exit to topADDD
PURE+TXT
The exit to top command causes an immediate exit from all handlers that may be executing and returns control to Oracle Media Objects.TAIL
PURE+TXT
Create a button and add the following handler to its script:
on mouseUp
aaa
bbb
end mouseUp
on aaa
put 2 into msg
exit to top
end aaa
on bbb
put 3 into msg
end bbb
Switch to Browse mode and click on the button. The number 2 appears in the Message Box because the bbb subroutine is not executing.TAIL
PURE>LST
MOCELL10
the exit control statement
Exp FunctionPROP
popupnum
15bkgd
data
Exp FunctionTAIL
the exp of <number>
exp (<number>)ADDD
The exp +TXT
The exp function returns the natural exponential of a number (the constant e, which equals 2.7182818, raised to the power specified by the number).TAIL
Type the+TXT
Type the following into the Message Box and press Enter:
put the exp of 2
7.389056 is returned.
exp (1)
2.718282 is returned.
exp (10)
22026.465795 is returned.TAIL
10>LST
MOCELL10
Exp1 Functiontion
Exp2 Functiontion
Ln1 Functionion
Exp1 FunctionPROP
popupnum
16bkgd
data
Exp1 FunctionTAIL
+T+TXT
the exp1 of <number>
exp1 (<number>)ADDD
The exp1+TXT
The exp1 function returns the natural exponential of a number minus the number one.
Notes:
When the number is close to zero, exp1 (number) provides a more exact result than exp (number) -1.TAIL
Type the+TXT
Type the following into the Message Box and press Enter:
exp1(1)
3.718202 is returned.
exp1(10)
22027.465795 is returned.TAIL
MOCELL10>LST
MOCELL10
Exp2 Functionion
Exp2 Functiontion
Ln1 Functiontion
Exp2 FunctionPROP
popupnum
17bkgd
data
Exp2 FunctionTAIL
+T+TXT
the exp2 of <number>
exp2 (<number>)ADDD
The exp2+TXT
The exp2 function returns the base 2 exponential of a number.TAIL
Type the+TXT
Type the following into the Message Box and press Enter:
exp2 (3)
8 is returned.TAIL
MOCELL10>LST
MOCELL10
Exp2 Functionion
Exp1 Functiontion
Log2 Functiontion
?CRDHvisiblecols function
@CRDHvisiblerows function
ACRDHvisual effect command
CRDHentries property
CRDHexit repeat control statement
CRDHexp2 function
Filled PropertyPROP
popupnum
44bkgd
data
Filled PropertyTAIL
+T+TXT
set the filled [of <shape>] to <boolean>ADDD
For shap+TXT
For shapes, when the filled property is set to true, oval, rect and round rect shapes are drawn filled with the pattern selected in the pattern palette. When the filled property is set to false the shape is drawn unfilled.
For painting, when the filled property is set to true, the chosen tool draws a shape filled with the pattern selected in the pattern palette. When the filled property is set to false, the chosen tool draws an unfilled shape.
Notes:
For shapes, you can toggle the filled property on and off simply by double
clicking on the Oval, Rectangle, or Round Rectangle tools.TAIL
Applies +TXT
/data
Applies to shapes, global painting
MOCELL10>LST
MOCELL10
Pattern Propertyperty
StackSpace FunctionPROP
popupnum
59bkgd
data
StackSpace FunctionTAIL
+T+TXT
the stackSpace
stackSpace ()ADDD
RE+TXT
The stackSpace function returns the number of bytes available to be used for the stack.TAIL
PURE+TXT
Type the following into the Message Box and press Enter:
stackSpace()TAIL
PURE>LST
MOCELL10
There are no related topics
Is [Not] WithinPROP
popupnum
data
Is [Not] WithinTAIL
<point> is [not] within <rectangle>TAIL
The is within and is not within operators provide a method for determining if a point falls within or outside a certain area.TAIL
Use this operator to initiate an event when the mouse enters a certain area. For example:
if the mouseLoc is within the rect of button id 2
then go card 2TAIL
MOCELL10
MouseWithin Messagesage
ForeColor PropertyPROP
popupnum
46bkgd
data
ForeColor PropertyTAIL
+T+TXT
set the foreColor [of <object>] to <color>ADDD
The fore+TXT
The foreColor property determines the foreground color of an object. It is also a global painting property.
For buttons, forecolor is the color of the text of the label and the outline if the button's style is not set to transparent or opaque.
For shapes, forecolor determines the color used to draw the lines of a shape object. This means that foreColor sets the line color of line
style shapes, the border color of rectangle
style shapes, and the label's color.
Setting the foreColor property for global painting sets the foreColor universally used by the paint tools.
The range for colors is identified by numbers from 0 to 255. In addition, 16 colors can be referred to by name; see on page .
When you select an object, Oracle Media Objects displays the foreground color in the toolbar palette labeled F for shapes, buttons, and bitmaps, and T for fields.
When setting the foreColor property, you can use a number or a named color constant for the <color> parameter. However, the value of the foreColor property is always returned as a number.
Notes:
For fields, setting the foreColor property has the same result as setting the textColor.
For bitmaps, setting this property has the same result as setting inkColor.TAIL
eate a+TXT
Create an oval shape and name it
color". Type the following lines in the Message Box and press Enter after each:
the forecolor of shape "color"
This returns the current color of the shape's border.
set the forecolor of shape "color" to 194
This sets the color of the shape's border to aquamarine.TAIL
Applies +TXT
/data
Applies to bitmaps, buttons, fields, groups, global painting, shapes
OCELL10>LST
MOCELL10
BackColor Propertyrty
InkColor Propertyerty
LineSize Propertyrty
TextColor Propertyerty
FreeSize PropertyPROP
popupnum
47bkgd
data
FreeSize PropertyTAIL
+T+TXT
get the freeSize of <stackname>ADDD
URE+TXT
NOT AVAILABLE IN THE PLAYER
The freeSize property returns in bytes the amount of disk space that is assigned to the indicated stack but not in use. Compacting the stack recovers the amount of memory shown by freeSize.
Notes:
This property is read-only. FreeSize can only be changed by using the compact stack command.TAIL
PURE+TXT
Create a button with the following script:
on mouseUp
get the freeSize of the stack
type it
if it > 1024 then
compact stack
end if
end mouseUp
Clicking on this button puts the freeSize of the current stack into the Message Box and compacts the stack if more that 1024 bytes are free.TAIL
PURE+TXT
/data
Applies to stacks
PURE>LST
MOCELL10
Compact Stack Commandmand
Global Control StatementPROP
popupnum
6bkgd
data
Global Control StatementTAIL
++TXT
global <variable> [,<variable>, <variable>]...ADDD
PURE+TXT
The global control statement declares one or more variables to be global variables that stay defined when the handlers in which they are used have finished being executed. A global variable can be accessed from across any number of handlers. A local variable becomes undefined when the handler in which it was defined is terminated.
Before using a global variable, a handler must declare the variable using the global keyword. In other words, for global mynumber to work correctly, every handler in which you use it must include a global mynumber statement.
Consider the following handler:
on mouseUp
put 1 into mynumber
end mouseUp
The variable mynumber will not be retained after the mouseUp subroutine is terminated. If you want to continue using this variable, you must either store it in a field or declare it as a global, as follows:
on mouseUp
global mynumber
put 1 into mynumber
end mouseUp
Then another handler can use the same variable, as long as it declares mynumber as well:
on mouseDown
global mynumber
answer mynumber
end mouseDown
You can also set a list of global variables to be used simultaneously:
on mouseUp
global mynumber1, mynumber2, mynumber3
end mouseUp
RE>LST
MOCELL10
There are no related topics
Function Control StatementPROP
popupnum
5bkgd
data
Function Control StatementTAIL
++TXT
function <functionName> [<parameters>]
[...] return <value>
end <functionName>ADDD
The func+TXT
The function control statement defines a handler that performs the tasks in the statement list, which can include calculating and returning a value. The function may receive parameters when it is called. The parameters, if used, take the form of a list of local variable names separated by commas.
A function handler differs from other handlers, such as message handlers and XCMDs, in that a function always returns a value. This value can be numerical, logical, or text. The return value is determined by the return statement in the Oracle Media Talk code of the function.
The major purpose of functions is to shorten scripts and make it easier for you to change scripts by separating frequently made calculations from the remainder of the script.
A function is called by stating its name and providing values for its parameters. Enclose the values in parentheses and separate them with commas. For example:
put <functionName>
([<parameter1, parameter2, ...>]) into <variable>
Notes:
The <functionName> must begin with a letter and contain no spaces and no punctuation other than underscores.TAIL
MOCELL10>LST
MOCELL10
Repeat Forevertrol statement
FunctionKey MessagePROP
popupnum
15bkgd
data
FunctionKey MessageTAIL
+T+TXT
For cards, fields:
on functionKey <keynumber>
end functionKey
For dataSheets:
on functionKey <keynumber>[, <row>[, <col>]]
end funtionKeyADDD
PURE+TXT
The functionKey message indicates whether a function key, specified by the <keynumber>, is being pressed. The message first goes to the field or dataSheet, then to the card; if the card has no handler for it, the message travels through the Oracle Media Objects hierarchy. If it reaches Oracle Media Objects itself, Oracle Media Objects issues the functionKey command.
Notes:
On the Macintosh, functionKey has built-in Undo, Cut, Copy, and Paste functions for <keynumber> values 1 through 4, respectively.TAIL
PURE+TXT
This example demonstrates how you can use the functionKey message in your stacks. Add the following handler to the current card:
on functionKey keynum
if keynum is 1 then
Copy
else
if keynum is 2 then
Paste
end if
end if
end functionKey
Pressing F1 while text in a field is selected copies the text. Pressing F2 pastes the text.TAIL
PURE+TXT
/data
Sent to the current card, fields, dataSheetsTAIL
MOCELL10
There are no related topics
Lock Screen CommandPROP
popupnum
59bkgd
data
Lock Screen CommandTAIL
+T+TXT
lock screenADDD
PURE+TXT
The lock screen command prevents updating of the screen, or "locks" the image of the current card until the current script ends or until the screen is unlocked. The lock screen command has the same effect as setting the lockScreen property to true.TAIL
URE>LST
MOCELL10
Unlock Screen Commandndnd
LockScreen Propertyerty
CRDHget command
CRDHglobal control statement
CRDHglobal variables property
Hide <object> CommandPROP
popupnum
51bkgd
data
Hide <object> CommandTAIL
+TXT
hide <object>ADDD
Hiding an object sets its visible property to false. Hidden objects do not receive mouse activity messages, and the Tab key does not advance to hidden fields.
Objects hidden with the hide command can be shown again using the show command.
Notes:
Hidden fields are not in the tabbing order.
The hide command does not affect the location property of an object.TAIL
does not affec+TXT
Create a field and name it
ghost". Make sure that the borders are visible in Browse mode. Then create a button with the following script:
on mouseUp
hide field "ghost"
wait 2 seconds
show field "ghost"
end mouseUpTAIL
wait >LST
MOCELL10
Show {screen elements}
Visible Propertye Prope@
Command
Global Variables PropertyPROP
popupnum
49bkgd
data
Global Variables PropertyTAIL
+T+TXT
the global variablesADDD
The glob+TXT
The global variables property returns a comma-delimited list of all currently defined global variables. This property is particularly useful when debugging scripts.
The global variables property is read
only.TAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Local Variables Propertyerty
Global Control Statementment
Go CommandPROP
popupnum
50bkgd
data
Go CommandTAIL
+T+TXT
go [to] [destination] <card | background>
[of <stack>]
go [to] <card | background | stack>ADDD
The go command takes you to the specified [destination]. Valid destinations are the following:
first last
next previous
back Any ordinal
If you don't specify otherwise, Oracle Media Objects assumes that the destination card is the first card in the specified stack. Oracle Media Objects assumes that you want to go to the current stack unless you specify another stack. If you go to a background, you go to the next card with that background (not to the first card). If the current card has the specified background, you remain in the current card.
Notes:
To specify a card, you must include the word "card," or "cd," and the name, number, position, or ID of a card in a stack. Note that you cannot access a card using the go command if the card's name is a number. In the case that you have a card named "3" and a card number 3, the command go card "3" will go to card number 3, not to card "3".
To specify the background, you must include the word "background," or "bg," and the name, number, position, or ID of a background in a stack.
To specify a stack, you must include the word "stack" and the name, number, or ID of any stack. You can specify a visual effect to be used on opening the card by issuing the visual effect command before you use the go command.
Go back takes you to the last card visited, whether that card is in the current stack or another stack.TAIL
Type the following commands into the Message Box and press Enter after each to navigate to another card or stack.
go next card
go back
go to card id 5
go to first card of second background of "MyStack.sta"
go card 2 of stack "revenue.sta"TAIL
PURE+TXT
/data
Applies to backgrounds, cards, stacks
PURE>LST
MOCELL10
There are no related topics
Release Library CommandPROP
popupnum
81bkgd
data
Release Library CommandTAIL
+T+TXT
release library <stack>ADDD
Library +TXT
Library stacks contain scripts and cards (typically custom dialog boxes) that can be shared among more than one stack.
The release library command removes a library stack from active status.TAIL
Type the+TXT
Type the following command into the message box to release a library stack called "myLib.sta", which was previously libraried using the library command:
release library "mylib.sta"TAIL
OCELL10>LST
MOCELL10
Library Command Command
LibraryStack Messagesage
ReleaseStack MessagesageADDD
CRDHgridsize property
CRDHheapspace function
CRDHheight property
HeapSpace FunctionPROP
popupnum
18bkgd
data
HeapSpace FunctionTAIL
+T+TXT
the heapSpace
heapspace()ADDD
The heap+TXT
The heapSpace function returns the amount of random access memory (RAM), in bytes, available to Oracle Media Objects.TAIL
he foll+TXT
The following script can be placed in a button's script to notify you when RAM is low:
on mouseUp
if heapSpace()<10000 then answer
"Memory is low"
end mouseUpTAIL
10>LST
MOCELL10
FreeSize Propertyerty
DiskSpace Functiontion
Height PropertyPROP
popupnum
51bkgd
data
Height PropertyTAIL
+T+TXT
set the height of {<object> | {card | cd}
<window>} to <number>ADDD
The heig+TXT
The height property determines the vertical size, in pixels, of an object or window.
If you change the height property of an object, Oracle Media Objects maintains the object's center point. The value <number> represents the total number of pixels in the vertical height of the specified object.TAIL
a+TXT
Create a button and name it
height test". Type the following scripts into the Message Box and press Enter after each:
the height of button "height test"
set the height of button "height test" to 100
The button shape changes per the set instruction.TAIL
Applies +TXT
/data
Applies to all objects, backgrounds, cards, card windows, message box, toolbar
MOCELL10>LST
MOCELL10
Location (Loc) Property
Width Propertyrtyy
Ln1 FunctionPROP
popupnum
24bkgd
data
Ln1 FunctionTAIL
the ln1 of <number>
ln1(<number>)ADDD
The ln1 +TXT
The ln1 function returns the base-e (natural) logarithm of (<number> + 1). That is, ln1(4) equals ln(5).TAIL
the+TXT
Type the following into the Message Box and press Enter:
ln1 (0)
0 is returned.
ln1 (1.718)
0.999896 is returned.
ln1 (0.01)
0.00995 is returned.TAIL
0>LST
MOCELL10
Ln1 Functionion
Exp1 Functiontion
Hide {screen element} CommandPROP
popupnum
52bkgd
data
Hide {screen element} CommandTAIL
+T+TXT
hide {screen element}ADDD
The hide+TXT
The hide command removes the specified screen element from view. Valid screen elements are the following:
menubar
cursor
titlebar
{background | bkgnd} picture
sizeBox
scrollbars
card window
{card | cd} picture
rulers
{horizontal | vertical} scrollbar
toolbar
message
Notes:
The hide {cd | bkgnd} picture form of the hide command removes from view the graphic bitmap on the card or background.
Except for cursor, you can hide screen elements only in Oracle Media Objects Designer.
Hide cursor commands may be nested. As with the lock screen and unlock screen commands, an equivalent show cursor command is required for each hide cursor command that has been issued.TAIL
MOCELL10>LST
MOCELL10
Show {screen elements}
Visible Propertye Prope@
Command
CRDHhide {screen element} command
CRDHhilite command
CRDHhilite property
/CRDHuncheck menuitem command
0CRDHunhilite command
1CRDHunitrate property
Hilite CommandPROP
popupnum
53bkgd
data
Hilite CommandTAIL
+T+TXT
hilite <button> | <shape> | bitmap |
[row <number> of] {<pickList> | <dataSheet>}
bitmap |ADDD
E+TXT
The hilite command sets the hilite property of the specified object or its parts to true, visually highlighting the object.TAIL
E+TXT
Create two buttons, "b1" and "b2". Set their autoHilite property to false and their style property to gray. Add the following handler to "b1":
on mouseUp
hilite me
unhilite button "b2"
end mouseUp
Add the following handler to "b2":
on mouseUp
hilite me
unhilite button "b1"
end mouseUp
Whenever one button is clicked, it is highlighted and the other button is unhighlighted.
To highlight a row of a pickList, use a command such as:
hilite row 1 of lst 1
PURE+TXT
/data
Applies to bitmaps,
PURE>LST
MOCELL10
Hilite Propertyperty
Unhilite Commandmand
AutoHilite Propertyerty
HilitedRows FunctionPROP
popupnum
19bkgd
data
HilitedRows FunctionTAIL
+T+TXT
hilitedRows of <pickList | dataSheet>ADDD
The hili+TXT
The hilitedRows function returns a comma-separated list of numbers that correspond to the highlighted (selected) rows. Hiliting rows in a pickList is slightly different from selecting rows or columns in a dataSheet, because highlighted rows stay highlighted if the user clicks outside the object.
The hilitedRows function is most often used to determine which items in a pickList or dataSheet have been selected by the user.
Create a+TXT
Create a new pickList named
Furniture" and populate it by entering the following line in the Message Box and pressing Enter:
put "sofa" & return & "chair" & return &
"table" & return & "bed" into pickList "Furniture"
Now create a new button and put the following handler into its script:
on mouseUp
put the hilitedRows of lst "Furniture" into order
if order is empty then
put "No furniture was ordered."
else
put "You ordered the following: " into reply
repeat with i=1 to the number of items in order
put (row (item i of order) of lst
"Furniture") " after reply
put " " into the last character of reply
-- replaces the carriage return
-- with a space
end repeat
put reply
end if
end mouseUp
Switch to Browse mode and select one or more pieces of furniture from the list. Click on the button; a dialog box confirming your order appears.TAIL
Applies +TXT
/data
Applies to datasheets, picklists
MOCELL10>LST
MOCELL10
There are no related topics
CRDHthis special container
#CRDHtitlebar property
(CRDHtrace command
HiliteColor PropertyPROP
popupnum
53bkgd
data
HiliteColor PropertyTAIL
+T+TXT
set the hiliteColor of <shape> to <color>ADDD
The hili+TXT
The hiliteColor property sets the second color used for patterns. <color> can be any number corresponding to the 256 supported colors, or one of the sixteen color names; see on page .
When you select a shape, Oracle Media Objects displays the hiliteColor in the rightmost palette, labeled H, of the toolbar.TAIL
plies +TXT
/data
Applies to shapes
MOCELL10>LST
MOCELL10
Hilite Propertyperty
ID PropertyPROP
popupnum
54bkgd
data
ID PropertyTAIL
T+TXT
the [long | short] id of <object>ADDD
E+TXT
The ID property is the unique number identifier that Oracle Media Objects. automatically assigns to objects.
The ID number assigned to an object can be seen by double
clicking on the desired object (other then the stack, background or card); by selecting the object and then choosing Info from the Object menu; or by using the set command.
Notes:
The ID property of a stack changes between sessions.
Object IDs are guaranteed to be unique within a card or background, but they can be duplicated between a card and background or across cards in the same stack.TAIL
PURE+TXT
Open or create a stack that contains three cards. Type the following in the Message Box and press Enter:
put the long ID of this card
A result such as card id 4164 of stack "YourStack.STA" is returned into the Message Box.
put the short ID of card 3
A result such as 2901 is returned into the Message Box.TAIL
PURE+TXT
/data
Applies to all objects, backgrounds, cards
E>LST
MOCELL10
There are no related topics
CRDHhilitedrows function
CRDHhypertext message
CRDHicon property
HyperText MessagePROP
popupnum
16bkgd
data
HyperText MessageTAIL
+T+TXT
on hyperText <text>
end hyperTextADDD
E+TXT
The hyperText message is sent when the user holds down the Alt key on Windows (the Option key on Macintosh) in a field and double-clicks on text. The message is sent regardless of the state of the lockText property.
The purpose of the hyperText handler is to allow you to create links between ideas or pieces of information. For example, the hyperText handler lets you dynamically define terms that the user might not understand. You can also use hyperText to link cards.
The <text> parameter of the hyperText message stores the word that was double-clicked.
It is recommended that you indicate to the user which words or phrases have associated hyperText links by displaying them in a different font, color, or style.TAIL
PURE+TXT
Put the following handler in a field containing the text
HyperText is a form of multimedia."
on hyperText SomeWord
if "HyperText" is in SomeWord then
put "a widely-known aspect of Hypermedia."
else if "multimedia" is in SomeWord then
put "the use of several perspectives
to present an idea."
else put SomeWord && "not found in
my vocabulary."
end hyperText
Try Alt-double-clicking on different words in the field.TAIL
PURE+TXT
/data
Sent to fieldsTAIL
PURE>LST
MOCELL10
MouseUp Messagesage
MouseDown Messagesage
Icon PropertyPROP
popupnum
55bkgd
data
Icon PropertyTAIL
+T+TXT
set the icon of <button> to <designator>ADDD
The icon+TXT
The icon property is the ID number of an Icon resource. It determines which icon is used for a button.
Normally when you create a button, you also select its icon; however, it is also possible to change this icon afterward using a script.
To change the icon property of a button, use the set command. You can determine a button's icon property by referring to the Icon resource by name, if one exists, or by number. If a button does not have an icon, its icon property is 0.
You can change the icon property of a button by clicking on the Icon button in a button's Info dialog box. A dialog box that displays the available icons appears. When the user clicks on an icon to select it, the icon's ID appears in the upper left corner of the dialog box.
Notes:
If you use the put command with the icon property, you will retrieve the number of the icon, not the name. You cannot retrieve an icon name.TAIL
Create t+TXT
Create two buttons and name them
test" and
test2". Select an icon for the
test" button, but don't choose an icon for the
test2" button. Type the following in the Message Box and press Enter:
set the icon of button "test" to the icon of button "test2"TAIL
Applies +TXT
/data
Applies to buttons
MOCELL10>LST
MOCELL10
There are no related topics
Libraries FunctionPROP
popupnum
21bkgd
data
Libraries FunctionTAIL
+T+TXT
the libraries
libraries()ADDD
PURE+TXT
The libraries function returns a return-delimited list of all currently active library stacks. The libraries function cannot be set by the user.TAIL
PURE+TXT
Create a field and name it "Libs". Now, enter the following statement into the message box to see a list of the currently active library stacks:
put the libraries into field "Libs"TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
Release Library Commandmand
Library Command Command
Idle MessagePROP
popupnum
17bkgd
data
Idle MessageTAIL
on idle
end idleADDD
RE+TXT
The idle message is sent continuously to the current card when Oracle Media Objects is in Browse mode and not executing a script.TAIL
PURE+TXT
on idle
put the time into background field "time"
end idleTAIL
PURE+TXT
/data
Sent to the current cardTAIL
PURE>LST
MOCELL10
There are no related topics
CRDHidle message
CRDHif control statement
CRDHimport command
'INFO
And OperatorPROP
popupnum
6bkgd
data
And OperatorTAIL
<boolean_expression> and
<boolean_expression>ADDD
And is a+TXT
And is a logical operator: it compares two boolean expressions and returns a boolean value.
And returns true if both conditions evaluate to true. Otherwise, if either or both conditions evaluate to false, the and operator returns false.TAIL
Create a+TXT
Create a button with the following script:
on mouseUp
put 10 into num1
put 20 into num2
if num1 = 10 and num2 = 20 then beep
end mouseUp
Now click on the button. The computer beeps because both conditions are true.
The following statements evaluate to true. If you type them in the Message Box and press Enter after each, Oracle Media Objects returns the value true.
true and true
true and 10=10
3>2 and 1<100
true and (true and (true and true))
The following statements evaluate to false. If you type them in the Message Box and press Enter after each, Oracle Media Objects returns the value false.
true and false
false and false
(2+3=1) and (2+3=5)
true and (true and (true and false))TAIL
MOCELL10>LST
MOCELL10
Or Operatortorratorrera
Not OperatorOperator
Left PropertyPROP
popupnum
60bkgd
data
Left PropertyTAIL
+T+TXT
set the left of {<object> | {card | cd}
<window>} to <number>ADDD
The left+TXT
The left property of an object is the position of the left side of an object, measured in pixels, from the left side of the card window. The left property of a card window is the position of the left side of the card window, measured in pixels, from the left side of the Oracle Media Objects window.
You can use the left property to determine or change the value of item 1 of the rectangle property (left, top, right, bottom).
Changing the left property does not change the size of the object, but moves all four coordinates.
Notes:
The left property of an object can also be set to a value off the card. Setting the left property to a value off the card makes the object seem as though it is hidden.TAIL
set the +TXT
set the left of button id 1 to 34
Applies +TXT
/data
Applies to all objects, backgrounds, cards, card windows, message box, toolbar
MOCELL10>LST
MOCELL10
Bottom Propertyperty
BottomRight Propertyerty
Rectangle Propertyerty
Right Propertyoperty
Top Propertyerty
TopLeft Propertyerty
Info PropertyPROP
popupnum
56bkgd
data
Info PropertyTAIL
+T+TXT
set the info of {col | column} <number1>
to <number2> of <dataSheet | pickList |
dataSheet | chart> to <string>ADDD
The info+TXT
The info property of a dataSheet or pickList or dataSheet column stores user-defined information. Info can store any character string of up to 255 characters; the default value is a blank string.
The info property does not affect any standard attributes of a dataSheet or pickList or a dataSheet.
Notes:
The info property is provided to give dataSheet and pickList or dataSheet columns custom property-like functionality. Custom properties cannot normally be defined for dataSheet and pickList or dataSheet columns.TAIL
can +TXT
You can use the info property to store a variety of useful information. For example, you might use it to indicate when data in a column was last modified.
Add the following handler to a pickList object:
on CloseCell changeRow, changeCol
set the info of col changeCol of me to
the short date
end CloseCellTAIL
es +TXT
/data
Applies to dataSheet or dataSheet columns, pickList columns
MOCELL10
There are no related topics
InkColor PropertyPROP
popupnum
57bkgd
data
InkColor PropertyTAIL
+T+TXT
set the inkColor of <bitmap> to <color>ADDD
The inkC+TXT
The inkColor property determines the foreground color of a bitmap object or graphic.
The range for colors is identified by numbers from 0 to 255. In addition, 16 colors can be referred to by name. See the textColor property.
When you select a bitmap object, Oracle Media Objects displays the foreground color in the toolbar palette labeled F.
When setting the inkColor property, you can use a number or a named color constant for the <color> parameter. However, the value of the inkColor property is always returned as a number.
Notes:
When you're working with bitmap objects or graphics, setting the inkColor property has the same result as setting foreColor. The inkColor property is similar to the Macintosh toolbox property opColor.TAIL
Create an oval bitmap and name it
color". Type the following lines in the Message Box and press Enter after each:
the inkColor of bmp "color"
This returns the current color of the bitmap's border.
set the inkColor of bitmap "color" to 194
This sets the color of the bitmap's foreground to aquamarine.TAIL
pplies +TXT
/data
Applies to bitmaps
MOCELL10>LST
MOCELL10
BackColor Propertyrty
ForeColor Propertyrty
InkEffect Propertyrty
LineSize Propertyrty
TextColor Propertyerty
CRDHinkcolor property
CRDHinkeffect property
CRDHinsert leg command
InkEffect PropertyPROP
popupnum
58bkgd
data
InkEffect PropertyTAIL
+T+TXT
set the inkEffect of <bitmap> to
{none | dataSheet | | chartblend |
transparent | invert | darker | lighter | add |
subtract}
E+TXT
The inkEffect property of a dataSheet or bitmap lets you specify how a bitmap is drawn with respect to its background. (If you are a Macintosh developer, you may know ink effects as "transfer modes.")
Because the results of the ink effects are determined mathematically, it may be difficult to predict these results unless you understand how colors work on the Macintosh. For an explanation, see the Oracle Media Objects User's Guide.
Notes:
For Windows, you cannot use auto
align bitmaps with ink effects.
The following list specifies each ink effect, its corresponding Macintosh transfer mode, and the result. These ink effects work on a pixel by pixel basis. Note that you can also specify an ink effect using its Macintosh transfer mode name.
Ink effect: Transparent
Macintosh transfer mode: Transparent
What it does: The transparent ink effect compares the colors in the bitmap to the color specified on the inkColor property. It then makes everything in the bitmap that matches the inkColor transparent, so that other objects are visible through those portions of the selected bitmap.
Ink effect: Blend
Macintosh transfer mode: Blend
What it does: Draws the bitmap so that it is a blend of its original color and the color of the background.
Blend uses the inkColor property to determine what percentage of the bitmap's color it should combine with what percentage of the background color. The resulting color is actually a combination of that percentage of the bitmap's color and the inverse percentage of the background's color.
Ink effect: Add
Macintosh transfer mode: Addpin
What it does: Creates a new color by adding together the numerical color component values of the bitmap and of the background.
You can set a maximum color limit on the resulting color using the inkColor property. So, if the value of the resulting color exceeds that of the inkColor, the result will match the inkColor.
Ink effect: Subtract
Macintosh transfer mode: Subpin
What it does: Creates a new color by subtracting the numerical color component values of the bitmap from that of the background.
You can set a minimum color limit on the resulting color using the inkColor property. So, if the value of the resulting color drops below that of the inkColor, the result will match the inkColor
Ink effect: Invert
Macintosh transfer mode: Notcopy
What it does: Creates a new color by subtracting the numerical color component values of the bitmap from that of the background.
You can set a minimum color limit on the resulting color using the inkColor property. So, if the value of the resulting color drops below that of the inkColor, the result will match the inkColor
Ink effect: Lighter
Macintosh transfer mode: Addmax
What it does: Compares the numerical color component values of the bitmap with those of the background. It then chooses the lighter of each, and displays the resulting bitmap in the combination of lighter colors
Ink effect: Darker
Macintosh transfer mode: Addmin
What it does: Same as lighter, only it chooses the darker of the color component valuesTAIL
PURE+TXT
/data
Applies to bitmaps (Macintosh only)
PURE>LST
MOCELL10
InkColor Propertyerty
Insert Leg CommandPROP
popupnum
55bkgd
data
Insert Leg CommandTAIL
+T+TXT
For paths:
insert leg <number> into <path>
[with <startPoint | endPoint> <x,y>]ADDD
The inse+TXT
The insert leg command creates a new leg and moves all existing legs "forward" in the path. For example, if you insert leg 3, then the existing leg 3 becomes leg 4, leg 4 becomes leg 5, etc. The startpoint of the (number+1) leg, if it exists, is then automatically set to be the endpoint of the new leg number. There must be at least number-1 existing legs, otherwise an error is raised.
When adding a leg to a path, one point is always determined by the point of insertion, since the leg will be connected to another existing leg, leaving one point to be optionally specified by the developer.
The new leg has as its startpoint the endpoint of the (number-1) leg and uses the optionally specified endpoint, or else selects the midpoint of the former leg number as its default endPoint. To specify the endpoint, rather than accepting the default you would type:
insert leg <number> into <path> with endPoint <x,y>
where the leg number is greater than 1.
If you are inserting a new leg number 1, then the endPoint is determined by the startPoint of the old leg 1, now leg 2, and you have the option of specifying the startPoint:
insert leg 1 into <path> with startPoint <x,y>TAIL
Applies +TXT
/data
Applies to paths
MOCELL10>LST
MOCELL10
Delete {row/col} Commandand
Insert {row/col} CommandPROP
popupnum
56bkgd
data
Insert {row/col} CommandTAIL
+T+TXT
For pickLists and dataSheets:
insert {row | col} <number> [to <number2>]
into <dataSheet | pickList | dataSheet>
For pick+TXT
For pickLists and dataSheets, the insert command inserts a new, blank row or column into an existing pickList or a dataSheet, moving all subsequent rows or columns after the inserted one. In addition, multiple rows or columns can be inserted at once. To clarify, if you're inserting a new second row or column, the old second row or column is pushed down or right, respectively.
If the user is inserting a single column or row, <number> identifies the column or row to be inserted. If the user is inserting a range, <number> identifies the beginning of the range and <number2> identifies the end of the range.TAIL
pplies +TXT
/data
Applies to pickLists and dataSheets
MOCELL10>LST
MOCELL10
Delete {row/col} Commandmand
Ln FunctionPROP
popupnum
23bkgd
data
Ln FunctionTAIL
T+TXT
the ln of <number>
ln(<number>)ADDD
The ln function returns the base-e (natural) logarithm of a number.TAIL
PURE+TXT
Type the following statement in the Message Box and press Enter:
ln (2)
0.693147 is returned.TAIL
PURE>LST
MOCELL10
Ln1 Functiontion
Exp2 Functionion
CRDHis [not] in operator
CRDHis [not] within
CRDHis not operator
CRDHid property
CRDHinfo property
CRDHinsert {row/col} command
CRDHsqrt function
CRDHstackspace function
CRDHstart command
CRDHscroll command
CRDHscroll message
CRDHscroll property
CRDHshowlines property
CRDHsize property
CRDHsoundfile property
fINFO
Param FunctionPROP
popupnum
42bkgd
data
Param FunctionTAIL
+T+TXT
the param of <param_number>
param(<param_number>)ADDD
The para+TXT
The param function is used to return the parameter values associated with the message or function call that invoked the current handler or function. For example, you can use param to return the mouseUp parameters in a pickList handler or the parameters passed by a doMenu message.
The <param_number> is the numeric value that specifies which parameter value to locate. Param(0) returns the name of the handler or function, param(1) returns the first value after this name, and so on.TAIL
eate a+TXT
Create a button and name it
Param". Put the following handler into the button script:
on mouseUp
paramtest "A", "B", "C"
end mouseUp
on paramtest p1, p2, p3
put param(1)
end paramtest
Now return to Browse mode and click on the "Param button". "A" appears in the Message Box.TAIL
MOCELL10>LST
MOCELL10
ParamCount Functiontion
Params Functiontion
)CRDHtransparentize command
*CRDHtrunc function
+CRDHtype command
CRDHsizebox property
CRDHsnaptogrid property
CRDHsort command
CRDHshowname property
CRDHshowpict property
CRDHsin function
IsPlaying PropertyPROP
popupnum
59bkgd
data
IsPlaying PropertyTAIL
+T+TXT
the isPlaying of <object>ADDD
IsPlayin+TXT
IsPlaying is a read-only property that indicates whether or not a sound, path, or movie is currently playing. If a sound, path, or movie is playing, isPlaying returns true. IsPlaying will return false if a sound, path, or movie is paused, stopped, or if the playback is finished.TAIL
e a+TXT
Create a button named
skip" and type the following handler into its script:
on mouseUp
if the isPlaying of mov 1 then
set the units of mov 1 to seconds
seek mov 1 to 20
end if
end mouseUpTAIL
es +TXT
/data
Applies to movies, paths, sounds
MOCELL10>LST
MOCELL10
There are no related topics
CRDHisplaying property
CRDHit special container
CRDHitem text chunk
CRDHshiftkey function
CRDHshow <object> command
CRDHshow {screen elements} command
CRDHseek command
CRDHselectedline function
CRDHsend farther command
CRDHset command
CRDHsetrandomseed command
CRDHsetupmenus message
$INFO
Member Chunk ExpressionPROP
popupnum
7bkgd
data
Member Chunk ExpressionTAIL
member <integer> of <group>ADDD
PURE+TXT
The member chunk returns the reference of a particular member of the specified group. It is synonymous with line <integer> of the members of <group>.
The member chunk is read-only; you cannot put an object reference into member <integer>.
PURE+TXT
Create a new card with three buttons and a group. Type the following in the Message Box and press Enter:
set the members of group 1 to "button 1" &
return & "button 2" & return & "button 3"
Then type the following lines in the Message Box and press Enter after each:
line 2 of the members of group 1
member 2 of group 1
Notice that the result is the same for both statements.
PURE+TXT
/data
Applies to groupsTAIL
PURE>LST
MOCELL10
Members Property
Item Text ChunkPROP
popupnum
5bkgd
data
Item Text ChunkTAIL
++TXT
item <integer1> [to <integer2>]
{of | in} <expression>
the <ordinal> item {of | in} <expression>ADDD
The item+TXT
The item text chunk yields a substring of an expression by extracting a specified item or range of items from the expression. Items are delimited by commas and include all punctuation between the delimiters, as well as returns.
The expression can be any valid text string, including a container reference, a property reference, a function that returns text, a literal string, or a combination of these.
Notes:
As with all chunk expressions, you can specify chunks of chunks, as in the following example:
item 4 of line 1 of field "coordinates"
You can also specify ranges of chunks, as in the following example:
item 3 to 4 of the rectangle of button "ClickMe"
You can use text chunk expressions with tabular chunk expressions by enclosing the tabular chunk expression in parentheses, as in the following example:
put item 1 of (row 2 of pickList 3)
Attention: You can use a combination of text and tabular chunk expressions to retrieve values, but not to insert values into containers. TAIL
foll+TXT
The following list demonstrates various item text chunk expressions and the values they return. For the examples, assume these conditions:
put "1,2,3,4,5" into my_variable
put "I like peas, carrots, and broccoli" into field 1
Expression: item 1 of "red,green,blue"
Result: red
Expression: item 2 to 3 in "red,green,blue"
Result: green,blue
Expression: char 1 to 3 of item 2 of "red,green,blue"
Result: gre
Expression: item 1 to 4 of my_variable
Result: 1,2,3,4
Expression: the last item in card field 1
Result: and broccoli
Expression: the first item of cd fld 1
Result: I like peasTAIL
10>LST
MOCELL10
Character Text Chunk topics
Line Text Chunk
Word Text Chunk
4INFO
MouseEnter MessagePROP
popupnum
21bkgd
data
MouseEnter MessageTAIL
+T+TXT
on mouseEnter
end mouseEnterADDD
PURE+TXT
The mouseEnter message is sent to the top nonhidden object whose rectangle encompasses the mouse pointer's location. MouseEnter is only sent to a bitmap when the mouse pointer enters a nonwhite painted area of the object.
Notes:
It is not necessary for the mouse button to be pressed for the message to be sent.
The mouseEnter message is not issued when the user is entering something into a field. In this case, all movements of the mouse and all keystrokes are processed directly by Oracle Media Objects.TAIL
PURE+TXT
Create a field and put the following handler into its script:
on mouseEnter
put hello into message box
end mouseEnter
When you move the pointer within the boundaries of the field, the word "hello" appears in the Message Box.TAIL
PURE+TXT
/data
Sent to all objects except the palette, sound, path, and timerTAIL
PURE>LST
MOCELL10
LockText Propertyerty
MouseLeave Messagesage
MouseLoc Functiontion
MouseWithin Messagesage
Rectangle Propertyerty
1INFO
MouseClick FunctionPROP
popupnum
33bkgd
data
MouseClick FunctionTAIL
+T+TXT
the mouseClick
mouseClick()ADDD
URE+TXT
The mouseClick function indicates whether the mouse has been clicked and released. If the mouse has been clicked, the result is true; otherwise, the result is false.TAIL
PURE+TXT
Create a button and name it
Test". Put the following script into button
Test":
on mouseUp
repeat until the mouseClick is true
beep
end repeat
end mouseUp
When the button is clicked, the beep sounds until the mouse is pressed again.TAIL
PURE>LST
MOCELL10
Click At Commandd
ClickLoc Functiontion
MouseV Functiononon
MouseDown Messagesage
MouseUp Messagesage
Length FunctionPROP
popupnum
20bkgd
data
Length FunctionTAIL
+T+TXT
the length of <container | string>
length (<expression>)ADDD
PURE+TXT
The length function counts the number of text characters in a specific source. Oracle Media Objects recognizes the following as text characters: letters, digits, symbols, spaces, returns, and tabs.TAIL
PURE+TXT
The length function can be used to validate text entered into a field. Create a field and put the following handler into its script:
on closeField
if the length of me is < 5 then
answer "Warning: The data you entered is
too short."
end closeField
Type three characters in the field and then click outside the field. The dialog box appears.TAIL
PURE>LST
MOCELL10
There are no related topics
INFO
Library CommandPROP
popupnum
57bkgd
data
Library CommandTAIL
+T+TXT
library <stack>ADDD
URE+TXT
The library command allows an Oracle Media Objects stack to obtain resources such as scripts and preprogrammed objects from another stack. Two major advantages of using a library stack are the ease of maintenance and potential space-saving capability. For example, you can store complicated scripts in separate stacks, which are available for use from other applications. This way, commonly-used or lengthy scripts need not be included in every application, and can be maintained at a central location.
The library command inserts the stack script of the libraried stack into the message-passing hierarchy between the already libraried stacks and the currently open stack.
The number of library stacks you create is limited only by the amount of space you have available.TAIL
PURE+TXT
To use a library stack called
mylib.sta", type the following command into the Message Box and press Enter:
library "mylib.sta"
If you no longer need resources from "mylib.sta," type the following into the Message Box and press Enter:
release library "mylib.sta"
This command cancels the current link to the specified library stack.TAIL
PURE>LST
MOCELL10
Release Library Commandmand
LibraryStack Messagesage
Libraries Functiontion
LinePattern PropertyPROP
popupnum
61bkgd
data
LinePattern PropertyTAIL
+T+TXT
set the linePattern of <shape | chart>
to <patternNumber>ADDD
URE+TXT
The linePattern property determines the pattern that is used in drawing the outline of a shape object. There are 40 line patterns available in Oracle Media Objects. You can view the patterns in the Painting or Authoring mode under the Pattern palette on the Paint toolbar. The default pattern is 12 (solid black). The patterns are numbered horizontally from the top left corner (number 1) to the bottom right corner (40) of the Pattern palette.
Notes:
To change the fill pattern, use the pattern property.TAIL
PURE+TXT
Create a shape object using a thick diagonal line and name it "diag". Type the following lines into the Message Box and press Enter after each:
the linePattern of shape "diag"
This returns the current line pattern.
set the linePattern of shape "diag" to 3
This sets the line pattern of the diagonal line to polka dots.TAIL
PURE+TXT
/data
Applies to shapes
PURE>LST
MOCELL10
LineSize Propertyrty
Pattern Propertyperty
4CRDHunlock messages command
5CRDHunlock screen command
6CRDHuntrace command
Line Text ChunkPROP
popupnum
6bkgd
data
Line Text ChunkTAIL
++TXT
line <integer1> [to <integer2>]
{of | in} <expression> the <ordinal> line
{of | in} <expression>ADDD
PURE+TXT
The line chunk yields a substring of an expression by extracting a specified line or lines from the expression. Lines are delimited by returns.
The expression can be any valid text string, including a container reference, a property reference, a function that returns text, a literal string, or a combination of these.
Notes:
You can specify ranges of cells, the following example:
line 1 to 2 of field "Inventory"
You can use text chunk expressions with tabular chunk expressions by enclosing the tabular chunk expression in parentheses, as in the following example:
put line 1 of (row 1 of pickList 3)
As with all chunk expressions, you can specify chunks of chunks.
Attention: You can use a combination of text and tabular chunk expressions to retrieve values, but not to insert values into containers. TAIL
PURE+TXT
The following examples demonstrate various line text chunk expressions and the values that they return. For the examples, assume these conditions:
put "red" & return & "green" & return & "blue"
into my_variable
Expression: line 1 of "Hello"
Result: Hello
Expression: line 2 to 3 of my_variable
Result: green
blue
Expression: char 1 to 3 of line 2 of my_variable
Result: gre
Expression: the last line in my_variable
Result: blueTAIL
E>LST
MOCELL10
Character Text Chunkhunk
Item Text Chunkhunk
Word Text Chunkhunk
Set CommandPROP
popupnum
89bkgd
data
Set CommandTAIL
T+TXT
set the <propertyName> [of <object>] to <value>ADDD
URE+TXT
The set command changes the value of the specified property of an object. Properties can be standard, custom, or global.
The set command is used to change a property value, and the complementary get command retrieves the current value of a property.
Notes:
Always use the set command to assign a value to a property. The put command cannot be used to assign a value to a property because properties are not containers.TAIL
PURE+TXT
Type the following line into the Message Box and press Enter:
set the autosave to 5TAIL
PURE>LST
MOCELL10
Get Commandmand
LineSize PropertyPROP
popupnum
62bkgd
data
LineSize PropertyTAIL
+T+TXT
set the lineSize [of <shape | chart>] to <integer>ADDD
For shapes, the lineSize property determines the line thickness that is used to create the outline of a an oval, rect, or round rect shape, display elements of a chart, or paint on a card, background, or bitmap. The global lineSize value applies to graphics drawn using the painting tools.
For global painting, lineSize determines the line thickness that is used to create the outline of a painted object.
Notes:
You can change the lineSize property graphically by double
clicking on the Line tool in the Shape Object Toolbar.TAIL
PURE+TXT
/data
Applies to shapes, global, paintingTAIL
PURE>LST
MOCELL10
ForeColor Propertyrty
Location (Loc) PropertyPROP
popupnum
64bkgd
data
Location (Loc) PropertyTAIL
+T+TXT
set the loc[ation] of <object> to <x, y>
The loca+TXT
The location property determines the position of an object on the screen.
The object's position is measured in pixels and is expressed as an x, y screen coordinate where x and y are positive integers representing pixels. For card windows and the toolbar, the coordinates correspond to the upper left corner of the object relative to the upper left corner of the screen. For all other objects, these coordinates correspond to the center of the object relative to the upper left corner of the card.
Notes:
If you want to move a card on the screen, set the location property for the card window of the current stack, not the location of the card.TAIL
To change the location of the toolbar, type the following lines in the Message Box and press Enter after each:
get the location of toolbar
add 100 to item 2 of it
set the location of toolbar to it
To return the toolbox to its original position, choose Reset Toolbar from the Navigation menu. Some additional examples follow:
set loc of button "Total" to "100,150"
set loc of bitmap id 3 to 100,250
put the loc of the toolbar
set the loc of card window to 50, 100TAIL
ies +TXT
/data
Applies to all objects, backgrounds, cards, card windows, message box, toolbar
MOCELL10>LST
MOCELL10
Bottom Propertyperty
BottomRight Propertyerty
Left Propertyrtyy
Rectangle Propertyerty
Right Propertyoperty
Show {screen elements}
Top Propertyerty
TopLeft Propertyerty
Command
CRDHkeypressed message
CRDHlibrary command
CRDHlinesize property
CRDHdo command
CRDHendpoints property
CRDHforecolor property
RCRDHhilitecolor property
CRDHis operator
INFO
Add CommandSCRP
on openCard
global gMediaTalkReference
set the cursor to watch
if gMediaTalkReference is "Commands" then
set the globalRowNum of this stack to 1
put "Commands" into bg fld "category"
put card fld "commands" of card "data" into bg lst "list" of bg "topic background"
set the alpha of this stack to false
dehilite bg lst "list"
dehilite bg lst "category"
hilite row 2 of bg lst "category" of bg "topic background"
set the vertical scrollline of bg lst "list" to 1
hilite row 1 of bg lst "list"
end if
set the cursor to arrow
put empty into gMediaTalkReference
end openCard
popupnum
1bkgd
data
Add CommandTAIL
add <number> to <container>ADDD
The add command adds the value of <number> to the value in <container> and puts the total into <container>, replacing the previous value. The value originally stored in <container> must be a number.TAIL
Create three fields and name them
Price1",
Price2", and
Total". Then create a button and give it the following script:
on mouseUp
put field "Price1" into num1
put field "Price2" into num2
add num1 to num2
put num2 into field "Total"
end mouseUp
Save the script. Enter 10 in the field "Price1" and 15 in the field "Price2". Click on the Browse tool and then click on the button.
You can achieve the same result by replacing the fourth and fifth lines of the script with:
put num1 + num2 into field "Total"TAIL
MOCELL10
+ (Plus) Operator
CRDHselectedobject function
CRDHselectedtext function
CRDHselection function
Local Variables PropertyPROP
popupnum
63bkgd
data
Local Variables PropertyTAIL
+T+TXT
the local variablesADDD
The loca+TXT
The local variables property returns a comma-delimited list of all currently active local variables. This property is particularly useful in debugging scripts.
When you enter the local variables property in the Message Box, Oracle Media Objects returns a list of all global variables, which are local to the domain of the Message Box.
The local variables property is read
only.TAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Global Variables Propertyerty
"INFO
MatchedRows FunctionPROP
popupnum
27bkgd
data
MatchedRows FunctionTAIL
+T+TXT
the matchedRows of <dataSheet>
where "condition"ADDD
Like the+TXT
Like the matchedCols function, matchedRows is a query function that returns a comma-delimited list of numbers that correspond to the rows of a dataSheet that satisfy the given constraints. The constraints are specified using a string expression. You can use several constraints joined by logical operators. Each constraint must use the following format:
[not] <column> [= | > | < | etc.] valueTAIL
You can +TXT
You can use the matchedRows function to find matching data with spaces in it. For example,
the matchedRows of dataSheet 1 where
"col 1 = " & QUOTE &
Hello World"
& QUOTE
matches a cell containing Hello World.
put the matchedRows of datasheet
EmployeeSalaries"
where
col 2 > Smith and col 5 > 32000"
into selectedRowVar
Column 2 will be searched for values that are greater than Smith and column 5 will be searched for values greater than 32000. The resulting string of matching row numbers will be put into the variable selectedRowVar.
Applies +TXT
/data
Applies to datasheets
CELL10>LST
MOCELL10
MatchedCols FunctiontionADDD
CRDHlocation (loc) property
CRDHlock messages command
CRDHlock screen command
Cos FunctionPROP
popupnum
11bkgd
data
Cos FunctionTAIL
cos (<angle>)
the cos of <angle>ADDD
The cos +TXT
The cos function calculates the cosine of an angle in radians.
Notes:
To calculate the cosine of an angle in degrees, multiply the angle by pi/180.TAIL
ype the+TXT
Type the following in the Message Box and press Enter to calculate the cosine of an angle of 60 degrees:
cos(60 * PI/180)
This example returns 0.5.TAIL
ELL10>LST
MOCELL10
There are no related topics
CRDHselect command
CRDHselectedchunk function
CRDHselectedfield function
CRDHscrollline property
CRDHscrollposition property
CRDHseconds function
CRDHscreenrect function
CRDHscriptstyle property
CRDHscrollbar property
yINFO
PlayDirection PropertyPROP
popupnum
81bkgd
data
PlayDirection PropertyTAIL
+T+TXT
set the playDirection of <movie | path>
to <forward | backward>ADDD
The play+TXT
The playDirection property controls the direction in which the movie or path plays. The value always reflects the current play state. So, if the movie's playStyle is set to reverseOnReplay, the movie's playDirection will be backward on even-valued plays (of playNumber).TAIL
The foll+TXT
The following set of commands, when added to a handler, causes infinite palindrome playback. (That is, playback forward to the end, then backward to the beginning, then forward, and so on.)
set the playDirection of path 1 to forward
set the playStyle of path 1 to reverseOnReplay
set the playForever of path 1 to true
To cause the same activity beginning in reverse
that is, playback backward to the beginning, then forward to the end, and so on
you would instead set the playDirection to backward.TAIL
pplies +TXT
/data
Applies to movies, paths
L10>LST
MOCELL10
PlayDirection Propertyrty
PlayStyle Propertyrty
PlayForever PropertyrtyADDD
ScrollBar PropertyPROP
popupnum
110bkgd
data
ScrollBar PropertyTAIL
+TX+TXT
set the {horizontal|vertical} scrollBar
to <boolean>ADDD
The scro+TXT
The scrollBar property controls the activation and display of the horizontal or vertical scroll bar on a card.
The visibility of each scroll bar can also be controlled using the
hide {horizontal|vertical} scrollbar
show {horizontal|vertical} scrollbar
commands.TAIL
Resize y+TXT
Resize your card so the horizontal and vertical scrollbars are visible.
Type the following lines in the Message Box and press Enter after each:
hide horizontal scrollbar
show vertical scrollbarTAIL
pplies +TXT
/data
Applies to card windows
LL10>LST
MOCELL10
ScrollFrame Propertyerty
Hide {screen element} C
ScrollLine Propertyrty
Scrolling Propertyperty
ScrollBars Propertyerty
Show {screen elements} @
ommand
Command
CRDHlockscreen property
CRDHlocktext property
CRDHlog2 function
¥INFO
OpenBackground MessagePROP
popupnum
30bkgd
data
OpenBackground MessageTAIL
+T+TXT
on openBackground
end openBackgroundADDD
The open+TXT
The openBackground system message is sent when the user navigates to a card that has a different background from that of the previous card.
The openBackground message can be used to initiate an action whenever a background is opened or created.
Notes:
When a new background is created, the openBackground message is sent immediately before newBackground. The openBackground message is not sent if the global property lockMessages is true.TAIL
a+TXT
Create a stack with two cards, each with a different background. Go to the second card, create a background field called
time", and put the following script into the card or background:
on openBackground
put the long time into background field "time"
end openBackground
Now go to the first card's background, using the Previous option on the Navigation menu. Type the following in the Message Box and press Enter:
go next backgroundTAIL
/data
Sent to the current cardTAIL
LL10>LST
MOCELL10
CloseBackground Messagesage
LockMessages Propertyerty
CloseCard Messagesage
OpenCard Messagesage
OpenStack Messagesage
CloseStack Messagesage
;INFO
Value FunctionPROP
popupnum
66bkgd
data
Value FunctionTAIL
+T+TXT
the value of <source expression>
value(expression)ADDD
The valu+TXT
The value function calculates the value of a source. The source can be any type of expression
numeric, logical, relational, or text string.TAIL
put the value of field "sum"
Place the following handler in the script of a button.
on mouseup
ask "Type an expression for me to evaluate:"
with "2+2"
answer "The answer is " & value(it) & "."
end mouseupTAIL
LL10>LST
MOCELL10
There are no related topics
Scroll PropertyPROP
popupnum
109bkgd
data
Scroll PropertyTAIL
+TX+TXT
set the [horizontal | vertical] scroll of
card window to <x,y>ADDD
The scro+TXT
The scroll property determines how much material is hidden above the top border or before the top and left borders of a window. "Material" is measured in pixels. If the first line of the window's contents is fully visible, the value of the scroll property is 1 ; thus, the value returned is always the number of pixel rows hidden plus 1.
The scroll property returns <x>, <y>, the horizontal option returns <x>, and the vertical option returns <y>.TAIL
Applies +TXT
/data
Applies to card windows
LL10>LST
MOCELL10
ScrollPosition Propertyerty
ScrollBars Propertyerty
ScrollFrame PropertyertyADDD
KeyPressed MessagePROP
popupnum
18bkgd
data
KeyPressed MessageTAIL
+T+TXT
on keyPressed <thecharacter>, <selectionstart>,
<selectionend>
end keyPressedADDD
E+TXT
The keyPressed message is sent when a key is pressed in a field. <thecharacter> is the key that is pressed.
If text in the field is selected, <selectionstart> is the position of the first character of the selection and <selectionend> is the position of the last character of the selection. If you pass keyPressed, the selected text is replaced by the character typed.
When the user types while the selection point is blinking in a field (that is, there is no selection), <selectionstart> is the position of the character after the insertion point, and <selectionend> has a value that is one less than the value of <selectionstart>. If you pass keyPressed, the character is inserted at the insertion point.
This message may be intercepted to implement custom validation. Don't forget to use pass keyPressed, or what the user types will not appear.
Notes:
When determining character positions within a field, returns are counted as characters.TAIL
PURE+TXT
The following handler, placed in a field's script, intercepts the keyPressed message to restrict data entry into the field to the alphabetic characters (A-Z, a-z):
on keyPressed whichKey
-- check for A-Z (ASCII 65-90)
if charToNum(whichKey) > 64 and
charToNum(whichKey) <
91 then pass keyPressed
-- check for a-z
if charToNum(whichKey) > 96 and
charToNum(whichKey) <
123 then pass keyPressed
-- otherwise alert the user that a
non-alphabetic character was typed
answer "You can only enter alphabetic
characters (A-Z, a-z) into this field"
end keyPressedTAIL
PURE+TXT
/data
Sent to fieldsTAIL
PURE>LST
MOCELL10
ReturnInField Messagesage
ArrowKey Messagesage
EnterInField Messagesage
FunctionKey Messagesage
OptionKey Functiontion
EnterInField MessagePROP
popupnum
13bkgd
data
EnterInField MessageTAIL
+T+TXT
on enterInField
end enterInFieldADDD
E+TXT
This message is sent when the Enter key on the Macintosh or the Ctrl-Enter key combination on Windows is pressed while an insertion point or selection is in a field. The enterInField message goes to the field that contains the insertion point or selection. To check for the Enter key in a cross-platform fashion, use a returnInField handler.TAIL
PURE+TXT
/data
Sent to a fieldTAIL
PURE>LST
MOCELL10
ReturnInField Messagesage
Start CommandPROP
popupnum
94bkgd
data
Start CommandTAIL
+T+TXT
start <timer> [expire in <number>
[milliseconds | ticks | seconds]]ADDD
The star+TXT
The start command tells a timer to go off after a specified amount of time. You can start a timer in one of two modes: single fire or multi-fire.
In single fire mode, the timer goes off once, at the time you specify, using the default timerExpired message. To start a timer in single fire mode, just use the start command with the expire option. The expire option tells Oracle Media Object to start the timer in single fire mode.
In multi-fire mode, the timer goes off as many times as you specify on the messages property, and sends the corresponding message(s) that you also specify on that property.
To start a timer in multi-fire mode, take the following steps:
1. Using the messages property, specify the time intervals at which the timer should go off, and the corresponding messages that should be sent.
2. Start the timer using the start command without the expire option. Note that using the expire option overrides the settings on the messages property (that you set in Step 1, above) and starts the timer in single fire mode.
Notes:
If you start a timer in single fire mode, any settings on the messages property are ignored.
If you specify a unit of time (seconds, milliseconds, or ticks) on the start command, the unit of time set on the units property is ignored.TAIL
Create a+TXT
Create a new timer named Buzzer and a button named
StartTimer". Place the following handler into the button's script:
on mouseUp
start timer "Buzzer" expire in 300 ticks
end mouseUp
Place the following handler into the script of the timer:
on timerExpired
beep
put "Your time is up!"
end timerExpiredTAIL
plies +TXT
/data
Applies to timers
MOCELL10>LST
MOCELL10
Stop Commandand
TimerExpired Messagesage
Messages Propertyertyy
UnitRate Propertyerty
Units Propertyerty
ScrollFrame PropertyPROP
popupnum
112bkgd
data
ScrollFrame PropertyTAIL
+TX+TXT
set the scrollframe to <boolean>ADDD
RE+TXT
The scrollFrame property reflects whether your card window has a scroll frame (scrollbars and size box). A false value means that the window does not have scrollbars and a size box. ScrollFrame is true if any of the scrollbars (horizontal or vertical) or the sizebox are true.
Notes:
The scrollbars and size box can be controlled separately through the scrollbars and sizebox properties, respectively.TAIL
PURE+TXT
/data
Applies to card windows
PURE>LST
MOCELL10
ScrollPosition Propertyerty
ScrollBars Propertyerty
SizeBox Propertyerty
Scrolling PropertyPROP
popupnum
116bkgd
data
Scrolling PropertyTAIL
+TX+TXT
For dataSheets and pickLists and dataSheets:
set the {horizontal | vertical} scrolling
of <dataSheet | pickList | dataSheet>
to <boolean>
For fields:
set the scrolling of <field> to <boolean>ADDD
PURE+TXT
The scrolling property determines whether the horizontal or vertical scrollbar of a dataSheet or pickList or dataSheet, or the vertical scrollbar of a field is visible.
For pickLists and dataSheets, the default value for horizontal scrolling is false and the default value for vertical scrolling is true.
For fields, the default value for scrolling is false.TAIL
URE+TXT
The following are valid uses of the scrolling property:
set the vertical scrolling of lst 1 to false
set the horizontal scrolling of lst
"Laundry List" to
(not the horizontal scrolling of lst "Laundry
List")TAIL
PURE+TXT
/data
Applies to datasheets, fields, pickLists
URE>LST
MOCELL10
ScrollLimit Propertyerty
DataScroll Propertyerty
ScrollLine Propertyrty
Enable MenuItem CommandPROP
popupnum
47bkgd
data
Enable MenuItem CommandTAIL
+T+TXT
enable menuItem <item> of
[menu<submenu_name> of] menu
<menu_name>ADDD
PURE+TXT
The enable menuitem command makes the specified menu item selectable by the user. The enable menuitem command applies only to user-defined menus.
Notes:
You cannot modify anything on the existing File or Edit menus.TAIL
URE+TXT
You cannot modify anything on the existing File or Edit menus.
enable menuItem "Umber" of menu "Colors"
RE>LST
MOCELL10
Disable MenuItem Commandmand
ScrollBars PropertyPROP
popupnum
111bkgd
data
ScrollBars PropertyTAIL
+TX+TXT
set the scrollBars to <boolean>ADDD
URE+TXT
The scrollBars property controls the activation and display of the horizontal and vertical scroll bars on a card.
The visibility of the scroll bars can also be controlled using the hide scrollbars or show scrollbars commands.TAIL
PURE+TXT
Resizing your card will make the horizontal and vertical scrollbars visible.
After resizing your card, type the following lines in the Message Box and press Enter after each:
hide scrollbars
show scrollbarsTAIL
PURE+TXT
/data
Applies to card windows
PURE>LST
MOCELL10
ScrollFrame Propertyerty
Hide {screen element} C
ScrollLine Propertyrty
Scrolling Propertyperty
ScrollBars Propertyrty
Show {screen elements} @
ommand
Command
ScrollLine PropertyPROP
popupnum
114bkgd
data
ScrollLine PropertyTAIL
+TX+TXT
For fields:
set the scrollLine of <field> to <number>
For dataSheets and pickLists:
set the {horizontal | vertical} scrollLine
of <dataSheet | pickList |
dataSheet> to <number>ADDD
PURE+TXT
For fields, the scrollLine property determines which line is currently displayed at the top of the visible field object.
This property is similar to the scrollPosition property except that scrollLine refers to lines rather than pixels and will scroll only until the bottom line of the field is fully visible.
For pickLists and dataSheets, horizontal scrollLine determines which column is displays at the leftmost edge of the object; vertical scrollLine determines which row displays at the top of the object.
Notes:
For pickLists and dataSheets, if the horizontal scrollLine property is set to an invisible column, Oracle Media Objects automatically resets it to a visible column.TAIL
/data
Applies to datasheets, fields, picklists
URE>LST
MOCELL10
ScrollPosition Propertyerty
ScrollPosition PropertyPROP
popupnum
115bkgd
data
ScrollPosition PropertyTAIL
+TX+TXT
For fields:
set the scrollPosition of <field> to <integer>
For dataSheets and pickLists:
set the (horizontal | vertical) scrollPosition
of <datasheet | pickList> to <integer>ADDD
The scro+TXT
The scrollPosition property determines how much material is hidden above the top border of a field or before the top and left borders of a scrolling object's rectangle. "Material" is measured in pixels. If the first line of the object's contents is fully visible, the value of the scrollPosition property is 1 ; thus, the value returned is always the number of pixel rows hidden plus 1.TAIL
You can +TXT
You can visually determine how much material is hidden outside of an object's rectangle by clicking or dragging in the appropriate scroll bar.
set the scrollPosition of field "comments" to 0
put the scrollPosition of field "comments" div the
textheight of field "comments"TAIL
plies +TXT
/data
Applies to datasheets, fields, picklists
L10>LST
MOCELL10
TextHeight Propertyerty
Scroll Propertyrtyperty
ScrollLine Propertyrty
ScrollBars Propertyerty
ScrollFrame Propertyerty
Scrolling Propertyerty
ScrollLimit PropertyertyADDD
Seconds FunctionPROP
popupnum
49bkgd
data
Seconds FunctionTAIL
+T+TXT
the seconds
seconds()ADDD
The seco+TXT
The seconds function returns an integer showing the number of seconds that have elapsed since Midnight, January 1, 1904.
This seconds function can be used to obtain the amount of time that has elapsed in seconds between the starting and ending time of an event.
Notes:
The seconds command can be abbreviated secs.TAIL
Type the+TXT
Type the following into the Message Box and press Enter:
put the seconds into starttime
Wait a few seconds. Then type the following lines into the Message Box and press Enter after each:
put the secs into endtime
put endtime - starttime into msg
The number of seconds you waited will appear in the Message Box.TAIL
MOCELL10>LST
MOCELL10
Ticks Functiontion
BusyCursor Propertyerty
Wait Commandmand
Seek CommandPROP
popupnum
86bkgd
data
Seek CommandTAIL
+T+TXT
seek <movie | path | sound> to <number>ADDD
For path+TXT
For paths, the seek command moves the animation to the unit specified by <number>. <number> is relative to the playStart property, and can't be greater than playDuration.
For sounds, the seek command repositions the sound to a specified position relative to playStart. <number> is expressed in units, and can't be greater than playDuration.
For movies, the seek command repositions the sound and animation to a specified position relative to playStart. <number> is expressed in units, and can't be greater than playDuration.
Notes:
If you use the seek command while the path is not animating, the object will move to the position specified by the seek command. If you then execute an animate along command, the object will begin animating from the beginning of the path, not from the seek position that you specified.TAIL
te a+TXT
Create a button
Play" and type the following into the script:
on mouseUp
prepare mov 1
play mov 1
end mouseUp
Create another button 'Seek" and type the following into the script:
on mouseUp
set the units of mov 1 to seconds
seek mov 1 to 20
end mouseUp
Now, click on the "Play" button to start the movie. As soon as the movie begins, you can click on the "Seek" button to reposition the sound and animation to 20 seconds into the movie.TAIL
Applies +TXT
/data
Applies to movies, paths, sounds
MOCELL10>LST
MOCELL10
PlayDuration Propertyrty
PlayStart Propertyrty
Units Propertyerty
FINFO
WideMargins PropertyPROP
popupnum
145bkgd
data
WideMargins PropertyTAIL
+TX+TXT
set the wideMargins of <object> to <boolean>ADDD
PURE+TXT
The wideMargins property adds extra space to the width of the left, right, and top margins of a field, and to the rows of a pickList or dataSheet, and cells in a dataSheet. TAIL
PURE+TXT
Create a field named
Test". Type the text
this is a test" into the field, and type the following into the Message Box:
set the wideMargins of field "Test" to trueTAIL
PURE+TXT
/data
Applies to datasheets, fields, pickLists
URE>LST
MOCELL10
There are no related topics
SelectedChunk FunctionPROP
popupnum
50bkgd
data
SelectedChunk FunctionTAIL
+T+TXT
the selectedChunk
selectedChunk()ADDD
The sele+TXT
The selectedChunk() function returns a reference to the currently selected text in the form:
char <number> to <number> of <card | bg>
field <id#>
If no text is selected, selectedChunk returns the position of the insertion point in a card or background field, or empty if no insertion point is placed.
You can return the actual selected text using either the selection function or the value of the selectedChunk.TAIL
eate a+TXT
Create a field and type the following line into it:
The weather has been very disappointing as of late.
Create a button and name it "Selector". Add the following handler to the button's script:
on mouseUp
put the selectedChunk
end mouseUp
Now, select the word weather and click on the button. To obtain the actual selection, change your handler to read:
on mouseUp
put the value of the selectedChunk
end mouseUpTAIL
MOCELL10>LST
MOCELL10
SelectedField Functiontion
SelectedLine Functiontion
SelectedText Functiontion
Selection Functiontion
SelectedField FunctionPROP
popupnum
51bkgd
data
SelectedField FunctionTAIL
+T+TXT
the selectedField
selectedField()ADDD
The sele+TXT
The selectedField() function returns the field in which the currently selected text is contained. SelectedField returns the value in the following format:
<card | bkgnd> <field> <number>
If no text is selected and the insertion point is not blinking in a field, selectedField returns empty.TAIL
foll+TXT
The following handler, placed in a card script, selects everything in a selected field when Shift-Enter is pressed:
on returnInField
if the shiftKey is down then
select text of the selectedField
else pass returnInField
end returnInFieldTAIL
10>LST
MOCELL10
SelectedChunk Functiontion
SelectedLine Functiontion
SelectedText Functiontion
Selection Functiontion
SelectedLine FunctionPROP
popupnum
52bkgd
data
SelectedLine FunctionTAIL
+T+TXT
the selectedLine
selectedLine()ADDD
The selectedLine() function returns the line and field of the currently selected text. SelectedLine returns the value in the following format:
line <number> of <card | bkgnd>
<field> <number>TAIL
PURE>LST
MOCELL10
SelectedChunk Functiontion
SelectedField Functiontion
SelectedText Functiontion
Selection Functiontion
SelectedObject FunctionPROP
popupnum
53bkgd
data
SelectedObject FunctionTAIL
+T+TXT
the selectedObject
selectedObject()ADDD
The sele+TXT
The selectedObject function returns the reference of the currently selected object, if any.
In edit mode, the selected object is identified by the dotted "marching ants". In Browse mode, the selected object is the field or dataSheet that contains the insertion point, or is empty if no insertion point is placed.
Notes:
Do not confuse the selectedObject function with the selectedField function. The selectedField function returns the name of the field that contains the currently selected text. The selectedObject function returns the reference of the object selected in edit mode.TAIL
a +TXT
Place a field, a bitmap, or other random objects on a card. Create a button called "Select Object" and place the following handler into its script:
on mouseUp
ask "Select which object?"
put it into theobject
do "select cd " & theobject
put the selectedObject into msg
choose browse tool
end mouseUp
Click on the button and enter "field 1" or "bitmap 1" or any other object on the card. The above example puts the reference of the selected object into the Message Box.TAIL
MOCELL10>LST
MOCELL10
SelectedChunk Functiontion
SelectedField Functiontion
SelectedLine Functiontion
SelectedText Functiontion
Selection Functiontion
SelectedText FunctionPROP
popupnum
54bkgd
data
SelectedText FunctionTAIL
+T+TXT
the selectedText
selectedText()ADDD
The selectedText function returns the currently selected text, or empty if no text is selected. SelectedText produces the same result as the selection or the value of the selectedChunk.
Notes:
This function does not apply to dataSheets.TAIL
PURE+TXT
Create a field and type the following line into it:
The delivery date has been changed.
Create a button and name it "Selector". Add the following handler to the button's script:
on mouseUp
put the selectedText
end mouseUp
Now, select the word "delivery" and click on the button.TAIL
PURE>LST
MOCELL10
SelectedChunk Functiontion
SelectedField Functiontion
SelectedLine Functiontion
Selection Functiontion
Selection FunctionPROP
popupnum
55bkgd
data
Selection FunctionTAIL
+T+TXT
the selection
selection()ADDD
The sele+TXT
The selection function returns the currently selected text, or empty if no text is selected.
Notes:
This function does not apply to dataSheets.TAIL
Try the +TXT
Try the example for selectedText, making the following substitution in the handler of the button:
on mouseUp
put the selection
end mouseUpTAIL
MOCELL10>LST
MOCELL10
SelectedChunk Functiontion
SelectedField Functiontion
SelectedLine Functiontion
SelectedText Functiontion
LINFO
Within OperatorPROP
popupnum
14bkgd
data
Within OperatorTAIL
+T+TXT
<x,y> is within <rectangle>ADDD
PURE+TXT
The is within operator tests whether the point <x,y> lies inside a rectangle. It returns a Boolean value.
The is within operator can be used to implement the second half of
drag" and
drop."
PURE+TXT
Create a button and name it
Drag". Create another button and name it
Drop". Resize the
Drop" button so the
Drag" button fits inside it.
on mouseDown
repeat until the mouse is up
set the location of me to the mouseloc
end repeat
if the mouseloc is within the rectangle of
button "Drop" then
put "Object accepted"
end if
end mouseDown
Now click on the "Drag" button.TAIL
PURE>LST
MOCELL10
There are no related topics
1INFO
Ask File CommandPROP
popupnum
11bkgd
data
Ask File CommandTAIL
button +TXT
ask file <prompt> [for open] [of type <type>]
ask file <prompt> for save [with <default>]ADDD
PURE+TXT
The ask file command displays a standard "Open File" dialog box that lets the user select a filename from the operating system. The user may either type the name of the file or select it from a scrolling list of files. The <prompt> string is displayed in the title bar of the window.
The <type> parameter specifies a file type that is automatically used as a filter for the display list (only files with extension <type> are displayed). In Microsoft Windows, <type> represents a file extension and must have exactly three characters. On the Macintosh, <type> represents a file type and must have exactly four characters. If <type> is not specified, all files are listed.
The full path name of the selected file is returned in it.
The ask file for save command displays a standard "Save File" dialog box that lets the user type in the name of a file. The <default> parameter specifies the default name for the file.
Notes:
The ask file for open command does not actually open the selected file.
The ask file for save command does not actually save the indicated file, nor does it verify that the specified name is valid.TAIL
PURE+TXT
The following button handler lets the user open a new stack. If the user clicks on the Cancel button, a new stack is not opened.
on mouseUp
if the platform is "Windows" then
put "STA" into filetype
else
put "STAK" into filetype
end if
ask file "Select a stack to open:" for open of
type filetype
if it is not empty then go to stack it
end mouseUp
Example 2:
The following function reads the first line of a text file. If the user clicks on the Cancel button, the function returns the string
No file selected."
function read_line_from_file
ask file "Select a text file:" for open of
type "WRI"
put it into file_name
if file_name is not empty then
open file file_name
read from file file_name until return
put it into the_line
close file file_name
return the_line
else
return "No file selected."
end if
end read_line_from_fileTAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
Read From File Commandmand
Write To File Commandmand
Open File Commandwith] <
Close File Commandmand
SetUpMenus MessagePROP
popupnum
43bkgd
data
SetUpMenus MessageTAIL
+T+TXT
on setUpMenus
end setUpMenusADDD
PURE+TXT
The setUpMenus message is generated when the user pulls down an Oracle Media Objects menu. With a setUpMenus handler, the developer can dynamically change the appearance or contents of a user-defined menu.
Notes:
Excessive use of the setUpMenus message may lead to menu performance degradation.
Quotes are stripped out of custom menus and menu items.TAIL
PURE+TXT
This example demonstrates how to create a dynamic menu that lists all of the objects on the current card. When an object is selected from the menu, the script editing window of the object is invoked.
create menu "Objects"
Then, add the following handlers to the stack script:
on setUpMenus
global g_current_card
if g_current_card is not the reference of
this card then
put empty into the_Objects
repeat with i = 1 to the number of objects
in this card
put (the short name of object i) & return
after the_Objects
end repeat
set the menuItems of menu "Objects" to
the_Objects
put the reference of this card into
g_current_card
end if
end setUpMenus
on doMenu menu_item, menu_name
if menu_name is "Objects" then
do "edit script of object" && quote
& menu_item & quote
end if
pass doMenu
end doMenuTAIL
PURE+TXT
/data
Sent to the current cardTAIL
PURE>LST
MOCELL10
Create Commandommandmman
Create Card Commanddmman
Cut Commandmand
Delete Card CommandmandADDD
SystemVolume PropertyPROP
popupnum
129bkgd
data
SystemVolume PropertyTAIL
+TX+TXT
set the systemVolume to <integer>ADDD
E+TXT
The systemVolume property sets the absolute volume; the sound object's playVolume property sets the volume relative to the value of systemVolume.
The default value of systemVolume is 50.TAIL
E+TXT
The following example illustrates the relationship between the systemVolume and playVolume properties:
set the systemVolume to 50
set the playVolume of snd 1 to 50
The result is that sound 1 will play at 25% of the full volume.TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
PlayVolume PropertyertyADDD
MINFO
Word Text ChunkPROP
popupnum
9bkgd
data
Word Text ChunkTAIL
++TXT
word <integer> [to <integer2>]
{of | in} <expression> the <ordinal> word
{of | in} <expression>ADDD
PURE+TXT
The word chunk yields a substring of an expression by extracting a specified word or range of words from the expression. Words are delimited by spaces, returns, or tabs; they include all punctuation between these delimiters.
The <expression> can be any valid text string, including a container reference, a property reference, a function that returns text, a literal string, or a combination of these.
Notes:
You can specify chunks of chunks as in
word 2 of line 3 of field "Inventory"
You can also specify ranges using chunks, as in
word 3 to 5 of field "Names"
You can use text chunk expressions with tabular chunk expressions by enclosing the tabular chunk expression within parentheses as in the following example:
put word 1 of (column 1 of pickList 3)
Attention: You can use a combination of text and tabular chunk expressions to retrieve values, but not to insert values into containers. TAIL
URE+TXT
The following examples demonstrates various chunk expressions and the values that they return. For the examples, assume these conditions:
put "1 2 3 4 5" into my_variable
put "I like peas, carrots, and broccoli" into field 1
Expression: word 1 of "red green blue"
Result: red
Expression: word 2 to 3 in "red, green, blue"
Result: green, blue
Expression: word 1 of "red,green,blue"
Result: red,green,blue
Expression: char 1 to 3 of word 2 of "red green blue"
Result: gre
Expression: word 1 to 4 of my_variable
Result: 1 2 3 4
Expression: the last word in field 1
Result: broccoli
Expression: the first word of fld 1
Result: ITAIL
URE>LST
MOCELL10
Character Text Chunkhunk
Item Text Chunkhunk
Line Text Chunkhunk
Show <object> CommandPROP
popupnum
91bkgd
data
Show <object> CommandTAIL
+T+TXT
show <object> [at <x,y>]ADDD
The show+TXT
The show command displays hidden objects. It makes the visible property of an object true, thereby bringing that object into view.
<x,y> specifies the distance from the upper-left corner of the card window to the center of any <object>.TAIL
Create a+TXT
Create a field called
ghost". Make sure that the borders are visible in Browse mode. Then create a button with the following script:
on mouseUp
hide field "ghost"
wait 2 seconds
show field "ghost"
end mouseUpTAIL
MOCELL10>LST
MOCELL10
Hide {screen element} Command
Location (Loc) Property
Visible Propertye PropeADDD
0INFO
Uncheck MenuItem CommandPROP
popupnum
101bkgd
data
Uncheck MenuItem CommandTAIL
+TX+TXT
uncheck menuItem <item>
[of menu <submenu_name>]
of menu <menu_name>ADDD
RE+TXT
The uncheck menuItem command removes a check mark from the specified item of the indicated menu or submenu.
Notes:
The uncheck menuItem command does not affect System menus, only user-defined menus.TAIL
PURE+TXT
Type the following into the Message Box and press Enter after each:
create menu "Colors"
add menuItem "Orange" to menu "Colors"
check menuItem "Orange" of menu "Colors"
To uncheck the menu item, type the following into the Message Box and press Enter:
uncheck menuItem "Orange" of menu "Colors"TAIL
URE+TXT
/data
Applies to menus
PURE>LST
MOCELL10
Disable MenuItem Commandmand
Enable MenuItem Commandmand
ShowLines PropertyPROP
popupnum
118bkgd
data
ShowLines PropertyTAIL
+TX+TXT
set the showLines of <field> to <boolean>ADDD
The show+TXT
The showLines property determines or changes whether the dotted lines that mark the border of text lines in a field are displayed.
When the showLines property of a field is set to true, the lines are visible. When the showLines property of a field is false, the lines are invisible.TAIL
Create a+TXT
Create a field called
test" and select the word wrap option in its Info dialog box. Enter data into the field such that the data spans more than one line.
on mouseUp
set the showLines of fld "test" to
(not the showLines of fld "test)
end mouseUp
Now click on the button to toggle the lines in the field on and off.TAIL
es +TXT
/data
Applies to fields
MOCELL10>LST
MOCELL10
There are no related topics
ShowName PropertyPROP
popupnum
119bkgd
data
ShowName PropertyTAIL
+TX+TXT
set the showName of <object> to <boolean>ADDD
The show+TXT
The showName property determines whether the object's name
also referred to as its label
is displayed on the screen.
When the showName property is set to true, the name is visible within the object. If the showName property is set to false, the name is not visible.
Using the Text menu, you can change the font, size, and style of an object's name. Using the Text menu, you can also change the color of an object's label for all of these objects, except buttons, groups, and shapes. To change the color of the label for buttons, groups, and shapes, use the foreColor property or the F palette on the toolbar.
To set the name's justification for all of these objects, use the Align submenu under the Text menu.
The default display characteristics of names of the different objects are as follows:
Button names are displayed centered inside the button, or positioned beneath the button's icon if one has been selected.
Field names are displayed in a bar at the top of the field. The default value of showName for fields is false.
Bitmap names are displayed in a bar at the bottom of the bitmap.
Shape names are centered within the shape.
Movie names are centered in the bar at the bottom of the movie.
Group name position is always at the top left of the object.TAIL
Applies +TXT
/data
Applies to bitmaps, buttons, fields, groups, movies, shapescharts,
MOCELL10>LST
MOCELL10
ForeColor Propertyrty
ShowName Propertyy
TextStyle Propertyty
TextColor Propertyerty
TextFont Propertyerty
TextStyle Propertyerty
TextSize Propertyerty
ShowPict PropertyPROP
popupnum
120bkgd
data
ShowPict PropertyTAIL
+TX+TXT
set the showPict of <card | background>
to <boolean>ADDD
The show+TXT
The showPict property determines whether a card or background picture is visible. Setting this property to true has the same effect as the show <card | background> picture command. Setting the showPict to false has the same effect as the hide command.TAIL
You can +TXT
You can use the showPict property to alternately cover or expose part of the painting on the background. Switch to background editing mode, select the Painting tool and create some graphics on the background. Then switch to card editing mode, select the Painting tool and create a filled rectangle that covers some of the background graphics. Create a new button named "Cover/Uncover" and put the following handler into its script:
on mouseUp
set the showPict of this card to
(not the showPict of this card)
end mouseUp
Switch to Browse mode and click on the button several times to alternately hide and show the rectangle on the card, thus covering and uncovering the region of graphics on the background.TAIL
Applies +TXT
/data
Applies to cards, backgrounds
MOCELL10>LST
MOCELL10
Hide <object> Command}
Show <object> Command CADDD
HINFO
WindowColor PropertyPROP
popupnum
147bkgd
data
WindowColor PropertyTAIL
+TX+TXT
set the windowColor to <color>ADDD
PURE+TXT
The windowColor property changes the color of the unused pixels on a screen. For example, if your screen is 800 pixels wide by 600 pixels high, and your card is only 512 pixels wide by 342 pixels high, windowColor changes the color of the area surrounding your card.
The range for colors is identified by numbers from 0 to 255. In addition, 16 colors can be referred to by name. See on page .
Notes:
To see the windowColor, you must set fullscreen to true.TAIL
PURE+TXT
Create a new card. For Windows, maximize the card by clicking the maximize button on right side of the card's title bar. Now type the following line in the Message Box and press Enter:
set the centeredWindow to true
This will place the card in center of the current window. Next type the following in the Message Box and press Enter:
set the windowColor to blue
set fullscreen to trueTAIL
PURE+TXT
/data
Applies to card windows
URE>LST
MOCELL10
CenteredWindow Propertyerty
Size PropertyPROP
popupnum
121bkgd
data
Size PropertyTAIL
+TX+TXT
the size of {this stack | stack "<pathname>"}ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
The size function returns the stack size in bytes. The stack size changes as objects and data are added and deleted. Size can also be reduced by freeSize bytes using the compact stack command.TAIL
PURE+TXT
Type the following into the Message Box and press Enter:
the size of this stackTAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
Compact Stack Commandmand
FreeSize Propertyerty
:INFO
MouseUp MessagePROP
popupnum
24bkgd
data
MouseUp MessageTAIL
+T+TXT
For bitmaps:
on mouseUp [<pixelColor>]
end mouseUp
For dataSheets and charts, pickLists, dataSheets:
on mouseUp [<row> [,<col>]]
end mouseUp
For all other objects:
on mouseUp
end mouseUp
For locked text fields:
on mouseUp [<word> [, <wordnum>]]
end mouseUpADDD
The mous+TXT
The mouseUp message is sent to the top non hidden object under the mouse pointer when the mouse button is clicked and released. If the mouse is clicked and released outside the physical dimensions of an object, a mouseUp message is sent to the card and then travels up the message hierarchy until it is handled.
If the user clicks on a physical cell of a dataSheet or dataSheet or pickList, two parameters are sent with the mouseUp message identifying the row and column of the data that was clicked. For chart objects, these parameters identify the cell whose values are associated with the selected bar, line, or pie wedge.
For bitmap objects, the mouseUp message carries a parameter that describes the color of the pixel that was clicked on. Bitmap objects do not receive a mouseUp message unless the mouse pointer is positioned over a painted, non white pixel.
For fields, two parameters are sent with the mouseUp message. The first parameter contains the text of the word that was clicked on. The second parameter contains the position of that word in the field i.e., what number word it is. To get the two parameters, the field's lockText must be set to true.
Notes:
The mouseUp message is not issued if the user places the insertion point or makes a selection in an unlocked field or dataSheet cell. In this case, all movements of the mouse and all keystrokes are processed directly by Oracle Media Objects.TAIL
The foll+TXT
The following is a basic mouseUp handler that puts the word
hello" into the Message Box. Create a button with the following script:
on mouseUp
put "hello" into msg
end mouseUp
The following handler in the script of a dataSheet returns the number of the selected row:
on mouseUp rowNum
put rowNum
end mouseUpTAIL
Sent to +TXT
/data
Sent to all objects, except the palette, sound, path, and timerTAIL
MOCELL10>LST
MOCELL10
Click At Commandd
ClickLoc Functiontion
LockText Propertyerty
MouseClick Functiontion
MouseDown Messagesages ADDD
Sort CommandPROP
popupnum
93bkgd
data
Sort CommandTAIL
sort <dataSheet> by {<row> | <column>}
[ascending | descending][as number]ADDD
RE+TXT
The sort command sorts the specified dataSheet by the row or column identified by <row | column>. You can sort a dataSheet in either ascending or descending order; the default order is ascending.
You can specify the type of data to be sorted
number or text. By default, the sort command treats the specified row or column data as text. Using [as number] specifies that the data should be treated as numbers when sorting.TAIL
URE+TXT
The following command sorts the dataSheet by its first column, in descending order. Because the [as number] clause is used, the data is sorted numerically.
sort dsht 2 by col 1 descending as numberTAIL
PURE+TXT
/data
Applies to datasheets
PURE>LST
MOCELL10
There are no related topics
EINFO
Name PropertyPROP
popupnum
75bkgd
data
Name PropertyTAIL
+T+TXT
For all objects:
set the name of <object> to <string>
get the [abbreviated | short | long | class]
name of <object>
For dataSheet or pickList and dataSheet columns:
set the name of col[umn] <number> of
<dataSheet | pickList | dataSheet> to
<string>ADDD
PURE+TXT
The name property determines the short, long, or class name of a specified object, or the name of a dataSheet, pickList, or chart or dataSheet column, or the name of a chart row. The short name of an object determines the text of the object's label, if visible. The name of a row or column determines the text of that row's or column's label, if visible.
The default name of an object is the object's class name followed by the object's ID number; for example:
field "field id 3"
The [abbreviated | abbrev] name is equivalent to the name.
The following lists the four different formats of the name property for objects.
Form: the name
Format: Returns the type of object
Example: card field "field id 3"
stack "emp.sta"
Form: the class name
Format: Returns the type of object
Example: field
stack
Form: the short name
Format: Returns the type and name of the object
Example: field id 3
emp.sta
Form: the long name
Format: Returns the type of object, the name of the object, the full information about the object's location, and for stacks, the path or folder where the object is located.
Example: card field "field id 3" of card id 2911 of bg id 2616 of stack "untitled"
stack "c:¥omo¥emp.sta"
stack "Macintosh HD:Oracle Media
Objects:emp
Each of these formats recognizes letters, digits, spaces, and symbols as part of an object's name property.
Notes:
See the class name property for more information on class names.
The value set by the name property is the short name; if you want to retrieve only the name that you have assigned to an object, without the class name, you must reference the short name property.
If you retrieve the name of an object that does not have a user-defined name, Oracle Media Objects returns the object's default name (class name and ID number, as in field "field id 3").TAIL
The following example demonstrates the differences between the three formats of the name property.
Create a button and name it "test". Type the following scripts into the Message Box and press Enter after each:
put the name of button "test"
put the short name of button "test"
put the long name of button "test"
To change the name of the button, type the following in the Message Box and press Enter:
set the name of button "test" to "newname"
Create a pickList named Employees. Type the following lines into the Message Box and press Enter after each:
set the name of col 1 of lst Employees
to "Employee ID"
set the name of col 2 of lst Employees
to "Last Name"
set the name of col 3 of lst Employees
to "Salary"
A shortcut for the above example would be:
set the colNames of lst Employees to
"Employee ID" & return & "Last Name"
return & "Salary"
PURE+TXT
/data
Applies to all objects, backgrounds, cards, columns of datasheets and picklists, stacks
PURE>LST
MOCELL10
ID PropertyrtyopertyhowName property
ColNames Propertyerty
ShowName Property
+INFO
Messages PropertyPROP
popupnum
71bkgd
data
Messages PropertyTAIL
+T+TXT
set the messages of <movie | path | sound |
timer> to "<number>,<string>" [& return &
"<number>,<string>" [...]]ADDD
PURE+TXT
The messages property specifies a list of callbacks or user-defined messages that will be delivered during the playback of a movie, path, or sound. <number> is expressed in the current units, is relative to the object's playStart property, and can be any value between 0 and the object's playDuration. <string> can be no more than fifteen characters, and cannot have spaces.
For timers, the messages property lets you specify the time interval(s) at which a timer goes off, and the corresponding message(s) sent at each time. The settings for this property are overridden if you start the timer in single fire mode (by specifying the expire option when starting the timer).
You must list the time intervals in ascending order.
Notes:
Any messages that are specified in the messages property will fire synchronously. This means that they will not interrupt other handlers that your application is executing at the time.
Each time interval and message pair must be enclosed in quotes, and must be delimited by line returns as shown in the example.
For sounds, be careful about setting the messages property to unexpected values. If there is not a sound file associated with your sound object, you can still modify messages if the units property is set to milliseconds, ticks, or seconds. If the units property is set to samples, however, then you should not attempt to get or set the messages property. If you try to get or set messages in this situation while working in the authoring environment of Oracle Media Objects, then you will get an error message. If you attempt to modify messages under these circumstances while working in the runtime player, the default rate of 22KHz will be used to calculate the value of messages.
PURE+TXT
The following property setting indicates that the message
myMessage1" will be delivered to the movie object when the playback reaches the position 2.53 seconds, and the message
mymessage2" will be delivered to the movie object when the playback reaches the position 4.5 seconds:
set the messages of movie 1 to
2530, myMessage1 & return &
4500, myMessage2"
The following handler sets the timer TimeAttack to expire at 1, 2, and 3 seconds with the Attack1, Attack2, and Attack3 messages, respectively.
on openCard
set the messages of timer "TimeAttack" to
"60, Attack1" & return &
"120, Attack2" & return &
"180, Attack3"
end openCard
URE+TXT
/data
Applies to movies, paths, sounds, timers
URE>LST
MOCELL10
DropMessages Propertyrty
MessageDropTime Propertyrty
The timerExpired property
Start Commandmand
Stop Commandand
UnitRate Propertyerty
Units Propertyerty
StartArrow PropertyPROP
popupnum
125bkgd
data
StartArrow PropertyTAIL
+TX+TXT
set the startArrow of <shape> to <boolean>ADDD
The star+TXT
The startArrow property determines whether an arrow is displayed at the leftmost end of a line (or topmost end in the case of a vertical line) shape object. If startArrow is true, the arrow is displayed. If startArrow is false (the default), no arrow appears.TAIL
d the +TXT
Add the following handler to a line shape:
on mouseUp
get the startArrow of me
set the startArrow of me to (not it)
set the endArrow of me to it
end mouseUp
When the shape is clicked, an arrow appears on one end of the line. When the object is clicked again, the arrow shifts to the opposite end.TAIL
Applies +TXT
/data
Applies to line shapes
ELL10>LST
MOCELL10
EndArrow Propertyerty
?INFO
Visible PropertyPROP
popupnum
144bkgd
data
Visible PropertyTAIL
+TX+TXT
set the visible of [<part> of] <object>
to <boolean>ADDD
The visi+TXT
The visible property determines or changes whether an object or a component of an object is shown or hidden on the screen. Setting an object's visible property to true makes the object visible. If the visible property of an object is set to false, the object is hidden.
The following lists parts to which the visible property applies:
Fields and bitmap parts: label
DataSheet and PickList parts:
rowLabel (dataSheet only), colLabel,
hgrid, vgrid
If a part is not specified when the set command is issued, the visible property of the entire object is set.
Notes:
Setting an object's visible property to false is the same as hiding it with the hide command. Likewise, setting the visible property of an object to true is the same as using the show command.TAIL
Notes:
S+TXT
Notes:
Setting an object's visible property to false is the same as hiding it with the hide command. Likewise, setting the visible property of an object to true is the same as using the show command.TAIL
ies +TXT
/data
Applies to all card objects, backgrounds, cards, card windows, the message box, titlebar, toolbar
MOCELL10>LST
MOCELL10
Hide {screen element} C
Show {screen elements} @
ommand
Command
StartSize PropertyPROP
popupnum
127bkgd
data
StartSize PropertyTAIL
+TX+TXT
set the startSize of [leg <number> of] <path>
to <integer, integer>ADDD
The star+TXT
The startSize property allows you to set the size of an object at the beginning of its trip down a path. <integer, integer> refers to the intended width and height of the object. For example, a value of 100,100 indicates an object that is 100 pixels wide and 100 pixels tall.
The startSize property is useful if you want an object to grow or shrink during its journey. This property is particularly important if you are creating three-dimensional effects, in which you need to use object size to present the illusion of distance and perspective on your two-dimensional screen.
You can set this property to apply to either the entire path or to a particular leg. If you want to use different startSize values for each leg of the path, you must also enable the uselegScaling property.
Note that this property only specifies the starting size of the object. If you want the object to be resized on a path, you must also enable the scaling property.
Notes:
Once you set the scaling property to true, or toggle the scale property on in the Path Info dialog box, any startSize or endSize settings you specify for a leg override any startSize or endSize settings you specified for the whole path.TAIL
Create a+TXT
Create a path and name it
Test." Then create a shape object.
Enter the following commands into the Message Box:
set the scaling of path 1 to true
set the startSize of path 1 to 10,10
set the endSize of path 1 to 100,100
animate shape 1 along path 1
The shape grows from 10-square pixels in size to 100-square pixels in size as it moves along the path, creating a three-dimensional effect.TAIL
es +TXT
/data
Applies to paths, or legs of paths
MOCELL10>LST
MOCELL10
Animate From Commandndand
EndSize Propertyerty
UseLegScaling Property
%INFO
Tool FunctionPROP
popupnum
64bkgd
data
Tool FunctionTAIL
+T+TXT
the tool
tool()ADDD
The tool+TXT
The tool function returns the name of the tool presently selected.
Notes:
Possible values returned by the tool function are:
bitmap tool
browse tool
brush tool
bucket tool
button tool
curve tool
dataSheet tool
eraser tool
eyedropper tool
field tool
group tool
lasso tool
line tool
oval tool
magnifier tool
movie tool
palette tool
path tool
pencil tool
pickList tool
polygon tool
rectangle tool
regular polygon tool
round rect tool
shape tool
select tool
sound tool
spray tool
text tool
timer toolTAIL
Type the+TXT
Type the following into the Message Box and press Enter:
the toolTAIL
MOCELL10>LST
MOCELL10
Choose Commandmand
CRDH
!CRDH
"CRDH
#CRDH
%CRDH
&CRDH
'CRDH
(CRDH
*CRDH
+CRDH
,CRDH
-CRDH
/CRDH
0CRDH
1CRDH
2CRDH
6CRDH
7CRDH
8CRDH
9CRDH
;CRDH
<CRDH
=CRDH
>CRDH
@CRDH
ACRDH
BCRDH
CCRDH
ECRDH
FCRDH
GCRDH
HCRDH
KCRDH
LCRDH
MCRDH
NCRDH
PCRDH
QCRDH
TCRDH
UCRDH
WCRDH
XCRDH
YCRDH
ZCRDH
¥CRDH
]CRDH
^CRDH
_CRDH
bCRDH
cCRDH
dCRDH
eCRDH
gCRDH
hCRDH
iCRDH
jCRDH
lCRDH
mCRDH
nCRDH
oCRDH
qCRDH
rCRDH
sCRDH
tCRDH
wCRDH
xCRDH
yCRDH
zCRDH
}CRDH
~CRDH
CRDH
CRDH
!CRDH
"CRDH
$CRDH
%CRDH
&CRDH
'CRDH
*CRDH
+CRDH
,CRDH
-CRDH
/CRDH
0CRDH
1CRDH
2CRDH
4CRDH
5CRDH
6CRDH
7CRDH
9CRDH
:CRDH
;CRDH
<CRDH
?CRDH
@CRDH
ACRDH
BCRDH
DCRDH
ECRDH
FCRDH
HCRDH
JCRDH
KCRDH
LCRDH
MCRDH
OCRDH
PCRDH
QCRDH
RCRDH
UCRDH
VCRDH
XCRDH
ZCRDH
[CRDH
¥CRDH
]CRDH
_CRDH
`CRDH
aCRDH
bCRDH
dCRDH
eCRDH
fCRDH
gCRDH
kCRDH
lCRDH
mCRDH
nCRDH
pCRDH
rCRDH
sCRDH
tCRDH
vCRDH
wCRDH
xCRDH
yCRDH
{CRDH
|CRDH
}CRDH
~CRDH
CRDH
CRDH
!CRDH
"CRDH
$CRDH
%CRDH
&CRDH
'CRDH
)CRDH
*CRDH
+CRDH
,CRDH
/CRDH
0CRDH
1CRDH
2CRDH
4CRDH
5CRDH
6CRDH
7CRDH
9CRDH
:CRDH
;CRDH
=CRDH
?CRDH
@CRDH
ACRDH
BCRDH
ECRDH
FCRDH
GCRDH
HCRDH
JCRDH
KCRDH
LCRDH
MCRDH
OCRDH
PCRDH
$BKGD
TabKey MessagePROP
popupnum
46bkgd
data
TabKey MessageTAIL
+T+TXT
on tabKey
end tabKeyADDD
The tabK+TXT
The tabKey message is sent to the current card whenever the Tab key is pressed, except when using the Tab key to move the cursor from field to field.
Notes:
If the tabKey message reaches the top of the Oracle Media Objects message-passing hierarchy, it becomes the tabKey command.TAIL
l+TXT
The following handler, placed in the script of a card, copies items from one field and pastes them into another each time the Tab key is pressed.
on tabKey
set the lockText of field "Low Inventory" to false
repeat with i = 1 to the number of lines of
field "Low Inventory"
put line i of fld "Low Inventory" & return after
field "Items on Order"
end repeat
set the lockText of field "Low Inventory" to true
end tabKeyTAIL
ent to +TXT
/data
Sent to the current cardTAIL
LL10>LST
MOCELL10
TabKey Commandelated topics
List FunctionPROP
popupnum
22bkgd
data
List FunctionTAIL
+T+TXT
To get a list of objects that match certain criteria:
the list of [layer] {objects | <object types>}
{at <point> | within <rect>} [with [property]
<custom property name>]
list([layer] {objects | <object types>}
{at <point> | within <rect>} [with [property]
<custom property name])
For files:
the list of files [of type <type>] [in <directory>]
To get a list of files in the specified directory:
the list of files [of <type>] [in <directory>]ADDD
tch +TXT
The list function serves to purposes. It returns references for all objects that match the specified criteria. The returned list is a set of object references separated by carriage returns. The object references take the following format:
<layer> object id <id> of <layer> id <id> of
stack <stack name>
The list function can be used to do the following:
Obtain a list of all objects of a particular class
Obtain a list of all objects at or within a particular region
Obtain a list of all objects with a given custom property
The at <point> clause limits the returned list to those objects whose rectangle encompasses the card coordinates <point>.
The within <rect> clause limits the returned list to those objects that overlap or lie within the card coordinates of <rect>.
The with [property] <custom property name> clause limits the returned list to those objects that have the named property.
The second purpose of the list function is to return a list of files in the specified directory. The list of files function returns a return-separated list of filenames in the given directory. The <type> is the extension (a 3-character string in Windows, and a 4-character file type on the Macintosh.) If <type> is omitted, the default is to list all types of files in the given directory. If <directory> is omitted, then the default is to list the files in the current directory.
Obtain a list of all objects of a particular class
Obtain a list of all objects at or within a particular region
Obtain a list of all objects with a given custom propertyTAIL
The following statement returns all files of the form *.txt (the conventional extension for text files) in the DOS directory "C:¥myfiles":
the list of files of type "TXT" in "c:¥myfiles"
The following statement lists all Oracle Media Objects stacks (identified by the file type STAK) in the Macintosh folder
My Stacks":
the list of files of type "STAK" in
"Macintosh HD:My Stacks"
The following statements demonstrate various uses of the list function
get the list of objects
put the list of fields within 1,1,100,100
into area_fields
get the list of bg buttons with property city
put the list of bitmaps into field "object list"
The following button handler makes all fields on a card visible:
on mouseUp
put the list of fields into card_fields
repeat with i = 1 to the number of lines
in card_fields
show (line i of card_fields)
end repeat
put the list of bg fields into bg_fields
repeat with i = 1 to the number of lines
in bg_fields
show (line i of bg_fields)
end repeat
end mouseUp
MOCELL10
Reference Propertyerty
Properties Propertyerty
Number Functiontion
*INFO
Transparentize CommandPROP
popupnum
99bkgd
data
Transparentize CommandTAIL
+T+TXT
transparentizeADDD
PURE+TXT
The transparentize command makes the current paint selection on a card, background, or bitmap transparent.
The transparentize command provides the same functionality as the Transparent menu item under the Graphic menu.TAIL
E+TXT
The following results in a transparent bitmap.
Create a button on an empty card and type the following into the button's script:
on mouseUp
create bmp 1
show bmp 1
--choose a PICT file with some white in
--it to be mypict
import "hd:picture:mypict" into bmp 1
set the style of bmp 1 to transparent
select bmp 1
choose select tool
put the topleft of bmp 1 into begindrag
put the bottomright of bmp 1 into enddrag
drag from begindrag to enddrag
transparentize
endmouseUpTAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
There are no related topics
TabKey CommandPROP
popupnum
97bkgd
data
TabKey CommandTAIL
+T+TXT
tabKeyADDD
The tabK+TXT
The tabKey command selects the contents of the next unlocked field on the current background or card. If a field is already open, tabKey closes it and opens the next field, selecting its contents. If the insertion point is in a dataSheet, the tabKey command will place the insertion point in the next cell.
Notes:
You can tab backwards through the field order by holding down the Shift key while typing the Tab key. You can do this in a script by using the statement:
type tab with ShiftKey
The tabKey command opens fields in the following order: background fields, from the lowest number to the highest, then fields, from the lowest number to the highest.TAIL
the+TXT
Type the following handler into the script of a card that contains a field:
on openCard
tabKey
end openCard
When the card is opened, the handler sets the insertion point in the first field so that the user can type something.TAIL
L10>LST
MOCELL10
TabKey Messagessage
Hilite PropertyPROP
popupnum
52bkgd
data
Hilite PropertyTAIL
+T+TXT
set the hilite of <button | shape |
[row <number> of] pickList |
[row <number> of] dataSheet> to <boolean>ADDD
The hili+TXT
The hilite property determines whether a button or shape, or a particular row of a picklist or dataSheet is highlighted (is displayed in inverse video), or shows another visual effect when clicked.
The hilite property has the following effects on the different styles of buttons:
When a shape object's hilite property is true, its background and foreground colors are reversed, regardless of the style attributes. Note that the hilite property turns on only if the autoHilite property is true.
The backColor and foreColor of an opaque or rectangle button are inverted when the hilite property is true.
The color of the background, or the backColor, is inverted when a transparent button's highlight is set to true.
A native, default, or gray button appears depressed when its hilite property is true.
A radio button is displayed as an empty circle when its hilite is false and as a circle with a black dot in the center when its hilite is true.
A check box is displayed as an empty square when its hilite is false and as a square filled with an X when its hilite is true.
When a shape object's hilite property is true, its background and foreground colors are reversed, regardless of the style attributes. Note that the hilite property turns on only if the autoHilite property is true.
Notes:
Do not confuse the autoHilite property with the hilite property. The hilite property determines whether or not a button, shape, pickList, or dataSheet is highlighted, while the autoHilite property determines whether or not the hilite property will turn on when a user clicks the object.
For example, when the user depresses a button with autoHilite turned on, the hilite property is automatically set to true and the button is painted in its highlighted state. As soon as the user releases the mouse, the hilite property is set to false and the button is repainted in its normal state. If that same button's autoHilite is turned off, you can still set the hilite property to true through scripting; however, when you click the button it will not be painted in its highlighted state.TAIL
ew +TXT
To view the visual effects of the hilite property on a button, create a button and name it "test". Type the following messages in the Message Box and press Enter after each:
set hilite of button "test" to true
set hilite of button "test" to falseTAIL
s +TXT
/data
Applies to bitmaps,
OCELL10>LST
MOCELL10
AutoHilite Propertyerty
TextStyle Propertyty
Hilite Commandndnd
Unhilite Commandmand
kINFO
Params FunctionPROP
popupnum
44bkgd
data
Params FunctionTAIL
+T+TXT
the params
params()ADDD
The para+TXT
The params function returns the line of script used to call the current handler. If string or numeric expressions were passed, params evaluates them before returning the line.
The params function is useful for debugging; type the params in the Evaluation field of the script debugger to view the actual values passed into the current handler.TAIL
te a+TXT
Create a button and name it
Param". Put the following handler into the button script:
on mouseUp
paramtest "A", "B", "C"
end mouseUp
on paramtest p1, p2, p3
put the params into message
end paramtest
Return to Browse mode and click on the "Param" button.
The line
paramtest "A", "B", "C"
is placed into the Message Box.TAIL
OCELL10>LST
MOCELL10
ParamCount Functiontion
Params Functiontion
Pop CommandPROP
popupnum
70bkgd
data
Pop CommandTAIL
T+TXT
pop card [into <container>]ADDD
PURE+TXT
The pop card command navigates to the last card marked with the push command. If the into <container> modifier is included, the card's reference is stored in <container> and no navigation occurs.
When more than one card is marked and held in a temporary container, the cards can be displayed in the order in which they were pushed.TAIL
PURE+TXT
The following command places a marked card into the container
dummy":
pop card into dummy
To return to the marked card, type the following into the Message Box and press Enter:
go to dummyTAIL
PURE+TXT
/data
Applies to cards
PURE>LST
MOCELL10
Push Commandmand
2INFO
MouseDown MessagePROP
popupnum
20bkgd
data
MouseDown MessageTAIL
+T+TXT
For bitmaps:
on mouseDown [<pixelColor>]
end mouseDown
For locked text fields:
on mouseDown [<word> [, <wordnum>]]
end mouseDown
For dataSheets and pickLists
on mouseDown [<row> [, <col>]]
end mouseDown
For all other objects:
on mouseDown
end mouseDownADDD
RE+TXT
The mouseDown system message is sent to the topmost nonhidden object under the mouse pointer when the user presses the mouse button. If that object has no handler for the message, it travels up the message hierarchy. Generally this message should not be used to begin a button selection routine, because the button would be selected as soon as the user clicked the mouse button. Compare this to mouseUp, which sends the message when the user releases the mouse button.
If the user clicks on a physical cell of a locked dataSheet or pickList, two parameters are sent with the mouseDown message identifying the row and column of the data that was clicked.
For bitmaps, the mouseDown message carries a parameter that describes the color of the pixel that was clicked on. The message is only sent when the user clicks on a painted, nonwhite pixel.
For fields, two parameters are sent with the mouseDown message. The first parameter contains the text of the word that was clicked on. The second parameter contains the position of that word in the field i.e., what number word it is. To get the two parameters, the field's lockText must be set to true.
Notes:
The mouseDown message is not issued if the user places the insertion point or makes a selection in an unlocked field or dataSheet cell. In this case, all movements of the mouse and all keystrokes are processed directly by Oracle Media Objects.TAIL
PURE+TXT
Create a button and put the following handler into its script:
on mouseDown
repeat until the mouse is up
set the loc of me to the mouseLoc
end repeat
end mouseDown
Now click on the button, hold the mouse button, and drag the button around.TAIL
PURE+TXT
/data
Sent to all objects, except the palette, sound, path, and timerTAIL
PURE>LST
MOCELL10
Click At Commandd
ClickLoc Functiontion
DoubleClick Messagesage
LockText Propertyerty
Mouse Functionnonon
MouseUp Messagesage
pINFO
Pattern PropertyPROP
popupnum
79bkgd
data
Pattern PropertyTAIL
+T+TXT
For painting:
set the pattern to <number>
For shapes:
set the pattern of <shape> to <number>ADDD
PURE+TXT
The pattern property determines or changes which pattern is currently active. For charts, this property determines which pattern is used to display a bar group, element, line, plotArea or wedge of a chart.
There are 40 different patterns available in painting mode. The patterns are identified by the numbers 1 through 40. Pattern 1 is located in the top-left corner of the pattern palette in the toolbar, followed by pattern 2 to its right, and so on.
For shapes, the default pattern value is 12 (solid fill).
Notes:
You can also set patterns manually by selecting the pattern palette from the Paint or Shape toolbar.TAIL
PURE+TXT
Notes:
You can also set patterns manually by selecting the pattern palette from the Paint or Shape toolbar.TAIL
E+TXT
/data
Applies to global painting, shapes
PURE>LST
MOCELL10
Filled Propertyerty
rINFO
Pause CommandPROP
popupnum
66bkgd
data
Pause CommandTAIL
+T+TXT
pause <movie | path | sound>ADDD
PURE+TXT
For movies, the pause command freezes the currently-playing movie, leaving the current frame image on the screen.
For paths, the pause command pauses the animation of the specified path. To resume the animation, use the play command.
For sounds, the pause command pauses the playback of the sound; to resume playback, use the play command.
Notes:
The paused state of a movie or path is distinct from the stopped state; when the movie is paused, a freeze-frame image is displayed and the movie may be frame stepped via the advance and backup commands. When the movie is stopped, the display is blanked and frame stepping is not possible.
The path may also be manipulated with the advance and backup commands while in a paused state. A paused animation can be resumed, while a stopped animation must be restarted from the beginningTAIL
PURE+TXT
When you pause a movie, you may want to rewind a couple of frames to make up for reaction time. To do this, create a movie and add the following handler to its script:
on mouseUp
if the isPlaying of movie 1 is true then
pause movie 1
backup movie 1
wait 5 seconds
backup movie 1
end if
end mouseUpTAIL
PURE>LST
MOCELL10
Advance Commandmand
Backup Commandand
Play File Command
Stop Commandand
sINFO
Pick CommandPROP
popupnum
67bkgd
data
Pick CommandTAIL
pick [multiple] <prompt> from <itemlist>
[with <reply1> [or <reply2> [or <reply3>]]]
[at <x,y>]ADDD
PURE+TXT
The pick command creates a dialog box that prompts the user to choose from a list of values.
A carriage return must separate each value in <itemlist>. As fields and other containers that hold multiple lines of data already delimit the values within them with returns, containers are a particularly good choice for <itemlist>.
If the multiple option is not used, the user will be able to make only one selection from the dialog box. If the multiple option is used the user will be able to choose multiple values using the shift key (for contiguous values) or the Ctrl or Command key (for non-contiguous values).
The pick command returns a value into it. If the default button, corresponding to the last specified reply clause, is pressed, the value returned to it is the number of the line chosen in the dialog box. In other words, if the user chooses the word "cool" and "cool" is the fourth value in the dialog box, the number 4 will be put into it. If multiple is used and the user chooses more than one value, the line number of each value will be put (separated by commas) into it. The values can subsequently be accessed as item 1 of it, item 2 of it, etc.
If two replies are specified, then pressing the button corresponding to <reply2> returns the number of the chosen lines into it, while pressing the button corresponding to <reply1> returns 0 into it.
If three replies are specified, then pressing the button corresponding to <reply3> returns the number of the chosen lines into it, pressing the button corresponding to <reply2> returns 0 into it, and pressing the button corresponding to <reply1> returns -1 into it.TAIL
PURE+TXT
Create a field and name it
test". Type the following lines into the field:
queen of hearts
jack of spades
ace of spades
Type the following into the Message Box:
pick multiple "Pick a card" from field "test" with
"Decline" or "Accept" at 200,200TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
It Special Containeriner
Answer Commandmand
Ask Commandd Command
Quit MessagePROP
popupnum
38bkgd
data
Quit MessageTAIL
on quit
end quitADDD
E+TXT
The quit message is sent to the current card after the user chooses Quit from the File menu. The quit message must be passed to be executed.TAIL
PURE+TXT
Place the following handler in the script of a stack to intercept the quit message and confirm the user's intentions of quitting Oracle Media Objects. A dialog box displays the options of quitting (click on Yes or press Enter) or of cancelling the quit command (click No):
on quit
answer "Are you sure you want to quit?"
with "No" or "Yes"
if it is "Yes" then pass quit
end quitTAIL
PURE+TXT
/data
Sent to the current cardTAIL
PURE>LST
MOCELL10
There are no related topics
vINFO
Play CommandPROP
popupnum
68bkgd
data
Play CommandTAIL
play <movie | path | sound>ADDD
PURE+TXT
For movies, the play command plays a prepared movie at its preferred rate, starting from the movie's playStart for the length of its playDuration, or resume a previously paused movie.
For paths, the play command starts an animation based on the current path settings, or resumes a previously paused animation. You must have previously set the playList property of the path.
For sounds, the play command starts the playback of a sound. The behavior of the playback is specified by playback properties, such as playStyle, playStart, playDuration, playCount, playEffects. If a sound is paused, the play command resumes sound playback.TAIL
Create a movie
Endless" and place the following into the movie's script:
on playStopped
set the playStart of mov "Endless" to 0
play movie "Endless"
end playStopped
Next, create a button "Play Forever" and place the following into the button's script:
on mouseUp
prepare movie "Endless"
play movie "Endless"
end mouseUp
Finally, create another button "Stop It" and place the following into its script:
on mouseUp
stop movie "Endless"
end mouseUpTAIL
PURE+TXT
/data
Applies to movies, paths, and sounds
PURE>LST
MOCELL10
Advance Command
Backup Command
IsPlaying Property
Messages Property
Pause Command
PlayCounter Property
PlayDirection Property
PlayDuration Property
PlayEffects Property
PlayList Property
PlayMuted Property
PlayRate Property
PlayStart Property
PlayStyle Property
Prepare Command
Stop Command
PlayMode PropertyPROP
popupnum
86bkgd
data
PlayMode PropertyTAIL
+T+TXT
the playMode of <movie>ADDD
The play+TXT
The playMode property is used to determine whether a particular movie is currently playing.
Setting the playMode property of a movie to true is equivalent to using the play command. Setting the playMode property of a movie to false is equivalent to using the pause command.TAIL
he scri+TXT
The script below stops a movie if it is playing, or starts the movie if it is not playing.
1. Create a new movie and name it
testmovie".
2. Associate
testmovie" with a QuickTime movie file by clicking on the Movie button in the movie's Info dialog box or by typing
set the moviefile of cd movie "testmovie"
to <filename>
then type
prepare cd movie "testmovie"
into the Message Box.
3. Create a new button and place the following handler into its script:
on mouseUp
set the playMode of cd movie testmovie to
(not the playMode of cd movie testmovie)
end mouseUpTAIL
pplies +TXT
/data
Applies to movies
MOCELL10>LST
MOCELL10
Play File Command
Pause Commandand
Rectangle PropertyPROP
popupnum
95bkgd
data
Rectangle PropertyTAIL
+T+TXT
set the {rectangle | rect} of <object> to
<left>, <top>, <right>, <bottom>ADDD
RE+TXT
The rectangle property determines or changes the size and location of an object. The rectangle property consists of four offsets, which are separated by commas and measured in pixels from the top-left corner of the current card (for objects) or of the screen (for the toolbar and windows). The first and third numbers measure the horizontal offsets, the second and fourth numbers measure the vertical offsets. The rectangle property can be abbreviated rect.
You can change the rectangle property by using the set command, by manually dragging or resizing the object, or by changing the object's width, height, or other coordinate properties.TAIL
PURE+TXT
The rectangle property can be used to move a button 50 pixels to the right of its present location. Create a button named "Test". Type the following lines into the Message Box:
put the rectangle of button "test" into myRect
add 100 to item 1 of myrect
add 100 to item 3 of myrect
set the rectangle of button "test" to myRect
The test button will shift to the right.TAIL
PURE+TXT
/data
Applies to all objects, backgrounds, card windows, message box, toolbar
PURE>LST
MOCELL10
Bottom Propertyperty
BottomRight Propertyerty
Height Propertyerty
Left Propertyrtyy
Right Propertyoperty
Top Propertyerty
TopLeft Propertyerty
Width Propertyrtyy
Reset Message CommandPROP
popupnum
83bkgd
data
Reset Message CommandTAIL
P+TXT
reset messageADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
The reset message command resets the Message Box to its normal size and position beneath the menu bar.TAIL
PURE+TXT
Move toolbar toward the lower half of the card by clicking and dragging on the small arrows located at the far left of the toolbar and dragging downward. To return the toolbar to its original position, type the following into the Message Box and press Return:
reset messageTAIL
PURE>LST
MOCELL10
There are no related topics
DeleteBackground MessagePROP
popupnum
8bkgd
data
DeleteBackground MessageTAIL
++TXT
on deleteBackground
end deleteBackgroundADDD
The dele+TXT
The deleteBackground message is sent to the background immediately before the background is deleted. Because a background cannot exist without a card, you delete a background by deleting all the cards associated with it.
Notes:
The deleteBackground message is purely informational. Intercepting the message with a handler does nothing to prevent the object from being deleted.TAIL
Place the following handler in the script of the current stack and then delete a background.
on deleteBackground
answer the number of background fields of
this background && "fields will be lost"
end deleteBackgroundTAIL
Sent to +TXT
/data
Sent to the deleted backgroundTAIL
MOCELL10>LST
MOCELL10
Delete {row/col} Command
DeleteObject MessagesageADDD
{INFO
PlayDuration PropertyPROP
popupnum
82bkgd
data
PlayDuration PropertyTAIL
+T+TXT
set the playDuration of <movie | path | sound>
to <integer>ADDD
E+TXT
For movies, the playDuration property controls the length of time that the movie plays. <integer> can be any number from 1 to the duration; the time scale of <integer> is set using the units property. The default value of the playDuration for a given movie is the value of the duration property for that movie.
For paths, playDuration controls the length of time that the animation plays. Using the playStart and playDuration properties together, you can play a specific segment path. The type and value of playStart are measured in terms of the current unit. The default value of the playDuration for a given path is the duration of the animation.
For legs of paths, playDuration is equivalent to the sum of the durations of the path's legs.
For sounds, the playDuration property controls the length of time that the sound plays. Using the playStart and playDuration properties together, a specific segment of sound can be played. The type and value of playStart are measured in terms of the current unit. The default value of playDuration is the duration of the sound.TAIL
URE+TXT
/data
Applies to movies, paths, sounds
PURE>LST
MOCELL10
Animate From Commandndand
PlayDuration Propertyrty
Duration Propertyerty
PlayStart Propertyrty
Units Propertyerty
|INFO
PlayEffects PropertyPROP
popupnum
83bkgd
data
PlayEffects PropertyTAIL
+T+TXT
set the playEffects of <sound> to
"fadein | fadeout at <x1> for <y1>
[& return & fadein | fadeout at <x2>
for <y2> [. . .]]"ADDD
PURE+TXT
The playEffects property indicates the list of sound effects that are to be applied to the playback of a sound file. <x1> signifies where in the sound playback the playEffects begin. <y1> represents the duration of the playEffects. Both values are based on the current units, and are relative to the sound's playStart.TAIL
PURE+TXT
/data
Applies to sounds
PURE>LST
MOCELL10
There are no related topics
~INFO
PlayList PropertyPROP
popupnum
85bkgd
data
PlayList PropertyTAIL
+T+TXT
set the playList of <path> to "<object>"
[& "<object>"...]ADDD
RE+TXT
The playList property allows you to specify a list of objects to be animated along a certain path. This means that you can specify the playList and immediately begin playback using the play command. Getting the playList returns a return delimited list of the object(s) to be animated along a path.
Notes:
You can leave off the quotes when specifying an object for the playList. When you do not use quotes, you are specifying that the data of the object, rather than the object itself, should go into the playList property.TAIL
PURE+TXT
/data
Applies to paths
PURE>LST
MOCELL10
Animate From Commandndand
Play File Command
PlayNumber Propertyrty
Is Not OperatorPROP
popupnum
9bkgd
data
Is Not OperatorTAIL
++TXT
<expression> {is not | < >} <expression>
<Variable> <> <Variable>ADDD
E+TXT
Oracle Media Objects has two methods of comparing the inequality of two values, fields, variables, text strings, or numbers:
The mathematical version with the sign of inequality (<>)
The text expression is not.
These two methods are equivalent and return a true or false value. TAIL
PURE+TXT
Create a button with the following script:
on mouseUp
put 10 into num1
put 20 into num2
if num1 is not num2 then
type "numbers do not match"
else
beep
end if
end mouseUpTAIL
PURE>LST
MOCELL10
Is [Not] In Operatorr
Send Farther CommandPROP
popupnum
88bkgd
data
Send Farther CommandTAIL
+T+TXT
send <object> {to back | farther}ADDD
E+TXT
The send farther command allows you to reposition the specified object within the sequence of all objects that exist on the current card. The to back option repositions the object to the lowest layer, or farthest from the top. The farther option moves the object one layer lower.
Notes:
Changing an object's layer changes its number if it is not the only object of its class on the current card. The to back option changes the object's number to 1 and increases the numbers of all other objects of that class by 1. The farther option decreases the object's number by 1.TAIL
PURE+TXT
Create a small filled rectangle shape called
inner" and set its color to red. Create a larger filled rectangle shape called
outer" and set its color to black. Place the larger rectangle on top of the smaller rectangle. Create a button and place the following handler into its script:
on mouseUp
Ask "How many times? with 5
put it into numtimes
repeat numtimes
send shape "outer" to back
wait for 1 second
send shape "inner" to back
wait for 1 second
end repeat
end mouseUp
Click on the button and then click on OK to dismiss the dialog box. You can see the visual effect of the inner shape appearing and disappearing.TAIL
RE+TXT
/data
Applies to all objects
PURE>LST
MOCELL10
Bring Closer CommandmandADDD
Is [Not] In OperatorPROP
popupnum
11bkgd
data
Is [Not] In OperatorTAIL
+T+TXT
<string expression> is [not] in
<string expression>ADDD
The is i+TXT
The is in operator determines whether text is contained in a container, such as a field or a variable. The is in operator searches the second parameter to look for a match to the first parameter, which holds the text. The operator conducts a text-matching task regardless of the validity of words or items, and returns a true or false value.TAIL
e the+TXT
Type these lines in the Message Box and press Enter after each:
"B" is in "Brown"
"Postage" is in "Post"
Is in can also be used in statements in an object's script.
if "New York" is in field "city"...TAIL
MOCELL10>LST
MOCELL10
Contains Operatorator
PlayNumber PropertyPROP
popupnum
88bkgd
data
PlayNumber PropertyTAIL
+T+TXT
set the playNumber of <movie | path | sound>
to <integer>ADDD
URE+TXT
The playNumber property specifies the number of times to play a movie, path, or sound when the play command is issued.
Setting the playForever property to true causes continuous playback, overriding the value of the playNumber property. A value of 1 causes the movie, path, or sound to play once, then stop at the end of playback. A value greater than 1 causes the movie, path or sound to play multiple times.
If, during playback, you reset the playNumber to a larger number, the change is effective immediately.
Notes:
If the object's playStyle includes a value of reverseOnReplay, then each even-numbered playback plays in the opposite direction of the initial playback. For example, if playback begins forward, the second playback will be in reverse, third forward, fourth in reverse, and so on.TAIL
PURE+TXT
/data
Applies to movies, paths, sounds
PURE>LST
MOCELL10
Play File Command
PlayForever Propertyrty
PlayStyle Propertyrty
PlayRate PropertyPROP
popupnum
89bkgd
data
PlayRate PropertyTAIL
+T+TXT
set the playRate of <movie> to <integer>ADDD
The play+TXT
The playRate property is a non-negative number that indicates the speed at which a movie is played. Setting a movie's playRate does not initiate playback; it controls the speed of playback once playback has been initiated with the play command.
A playRate of 1 means the movie is playing forward at normal speed, while a playRate of 0 indicates a movie that is stopped. Setting the playRate to 2 or more increases the rate at which the movie is played (just like fast forwarding or rewinding it, as illustrated in the example below).
Notes:
Quicktime for Windows does not currently support a playRate value other than 1. In Windows, the playRate property is read-only and returns 1 if the movie is playing, 0 if the movie is stopped.TAIL
Create t+TXT
Create two buttons. Name one
Fast-Forward" and name the other
Rewind".
on mouseUp
set the playMuted of movie 1 to true
set the playDirection of movie 1 to backward
set the playRate of movie 1 to 2
end mouseUp
Add the following handler to the "Fast-Forward" button's script:
on mouseUp
set the playMuted of movie 1 to true
set the playDirection of movie 1 to forward
set the playRate of movie 1 to 2
end mouseUp
Both of these handlers mute the movie's sound to prevent garbled noise while the movie rewinds or fast forwards.TAIL
Applies +TXT
/data
Applies to movies
MOCELL10>LST
MOCELL10
Play File Command
Stop Commandand
Delete <chunk> CommandPROP
popupnum
34bkgd
data
Delete <chunk> CommandTAIL
+T+TXT
delete <chunk> of <container>ADDD
PURE+TXT
The delete <chunk> command deletes specified text from within a designated container. The text chunk expressions are character or char, item, line, word or wd.
Notes:
There is no way to undo a deletion!TAIL
Try the following example:
1. Create a field called
vitals".
2. Return to Browse mode.
3. Type your name on the first line of the field, your street address on the second line, and your city, state, and zip code on the third line.
4. To delete the city from this field, type the following in the Message Box and press Enter:
delete word 1 of line 3 of field "vitals"
The following statement deletes the first character of the variable my_variable:
delete character 1 of my_variable
PURE+TXT
/data
Applies to text chunks in fields, datasheets, picklists, and variables
PURE>LST
MOCELL10
Put Commandmand
PlayStart PropertyPROP
popupnum
90bkgd
data
PlayStart PropertyTAIL
+T+TXT
set the playStart of <movie | path | sound>
to <integer>ADDD
PURE+TXT
The playStart property determines the position in the movie, path, or sound at which playback begins. <integer> is measured in units, and can be any number from 0 through the duration.
For movies and sounds, if playback has begun, resetting the playStart does not affect the current playback; it will be effective at the next playback. For paths, you cannot reset playStart while animating.
You can use the playStart property, together with the playDuration property, to play a specific segment of the movie, sound, or animation.
For example, if a movie's duration is 100, and you set its playStart to 20 and its playDuration to 55, the movie's playback will end at 75.
PURE+TXT
/data
Applies to movies, paths, sounds
PURE>LST
MOCELL10
PlayDuration Propertyrty
Duration Propertyerty
PlayStopped MessagePROP
popupnum
37bkgd
data
PlayStopped MessageTAIL
+T+TXT
on playStopped
end playStoppedADDD
PURE+TXT
The playStopped message is sent to the movie object when the movie finishes playing, or when a user stops a movie by selecting the "Stop" button on the control bar. This message is not sent when a movie is stopped through a script.
The playStopped message is sent to the path object when the animation finishes playing. This message is not sent if playForever is set to true, or if the animation is stopped using the stop command.
The playStopped message is sent to the sound object when the sound file finishes playing. It is only sent when a sound file completes playing normally, or when you terminate the sound using the endPlay command. The message is not sent if the sound file is stopped with the stop commandTAIL
PURE+TXT
/data
Sent to movies, paths, soundsTAIL
PURE>LST
MOCELL10
PlayStarted Messageage
EndPlay Commandand
PlayStyle PropertyPROP
popupnum
91bkgd
data
PlayStyle PropertyTAIL
+T+TXT
For movies:
set the playStyle of <movie> to <default |
blocking | reverseOnReplay | overLaid |
playForever> [, <default | blocking |
reverseOnReplay | overLaid |
playForever> ...]
For paths:
set the playStyle of <path> to <default |
blocking | useLegScaling | useLegTiming |
reverseOnReplay | playForever> [,<default |
blocking | useLegScaling | useLegTiming |
reversesOnReplay | playForever> ...]
For Sounds:
set the playStyle of <sound> to <default |
blocking | playForever>ADDD
The play+TXT
The playStyle property determines the characteristics of play for a movie, sound, or path. You can set the playStyle property to any combination of styles. Note, though, that setting the playStyle to default implies an absence of any style; consequently, you can't set playStyle to a combination of default and any other style.
For movies, sounds, and paths, the playStyle property can be set to blocking (synchronous) or default (asynchronous). With the playback set for blocking, all other scripts are suspended until the movie, sound, or path completes playback. Default playback allows scripts to keep running while the sound, path, or movie is playing. This allows you to play multiple sounds, for example, simultaneously.
For movie, paths, and sounds, the playStyle can also be set to playForever. Setting the playStyle to playForever causes a movie, path, or sound to play continuously, overriding playNumber.
For movies and paths only, reverseOnReplay indicates the direction of play when playNumber > 1. With reverseOnReplay each replay reverses the direction of the previous play.
For movies only, the playStyle property can also be set to a value of overLaid. When playStyle is set to overLaid, objects appear on top of the movie. Setting playStyle to overLaid results in reduced playback performance, and is recommended only for small movies. When the playStyle is not set to overLaid, the movie appears on top of the objects during playback. If no objects or only transparent objects intersect the movie, the overLaid playStyle is unnecessary.
For paths only, the playStyle property can also be set to useLegTiming and useLegScaling. UseLegTiming indicates the play will use the durations set for the individual legs rather than the path as a whole. UseLegScaling indicates the play will use the scaling set for the individual legs rather than the path as a whole.
Notes:
If you are going to mix two or more sounds, the playStyle property of the sounds must be set to default.TAIL
+TXT
/data
Applies to movies, paths, sounds
MOCELL10>LST
MOCELL10
ReverseOnReplay Propertyrty
UseLegScaling Propertyrty
UseLegTiming Propertyrty
Blocking Propertyrty
OverLaid Propertyrty
PlayForever Propertyrty
PlayNumber Propertyrty
PlayVolume PropertyPROP
popupnum
92bkgd
data
PlayVolume PropertyTAIL
+T+TXT
set the playVolume of <movie | sound>
to <integer>ADDD
The play+TXT
The playVolume property determines the volume of the movie or sound during playback. The playVolume represents a percentage of the movie or sound's current volume setting. A value of 100 indicates that the movie or sound is played back at the current volume. A value of 0 mutes the sound.
The default value is 100.
Notes:
Previous to the production release of Oracle Media Objects, the playVolume property represented a percentage of the movie or sound's maximum value, rather than a percentage of the current volume setting.TAIL
Applies +TXT
/data
Applies to movies, sounds
10>LST
MOCELL10
PlayMuted Propertyrty
Polysides PropertyPROP
popupnum
93bkgd
data
Polysides PropertyTAIL
+T+TXT
set the polysides to <number>ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
The polysides property indicates the number of sides used to construct the shape that the regular polygon tool draws.
There are three ways to set the number of sides. You can set the value through a dialog box. You can open the dialog box by selecting the "Polygonshape" option from the "Settings" submenu of the "Graphic" menu or by double-clicking on the polygon tool.
Within the dialog box there are five options: 3, 4, 5, 6, and 8. You can also specify any number greater than 2 through a script.TAIL
URE+TXT
Type the following in the Message Box and press Enter:
set the polysides to 10
Now, choose the regular polygon tool within the Paint toolbar. Click and drag to create a 10-sided polygon.TAIL
PURE+TXT
/data
Applies to global painting
MOCELL10
There are no related topics
ScrollLimit PropertyPROP
popupnum
113bkgd
data
ScrollLimit PropertyTAIL
+TX+TXT
set the {horizontal | vertical} scrollLimit of
<dataSheet | pickList | dataSheet>
to <integer>ADDD
The scro+TXT
The scrollLimit property determines the last row or column of a dataSheet or pickList or dataSheet that can be viewed by scrolling. The "last" row means the bottommost fully visible row; the "last" column means the rightmost fully visible column.
The horizontal scrollLimit can be any integer from 1 to 256. The default value is 256.
The vertical scrollLimit can be any integer from 1 to 2048. The default value is 2048.
Notes:
If the dataScroll property is set to true, the user will be able to scroll to the scrollLimit or the last row or column containing data, whichever is less.
Cells beyond the scrollLimit (if partially visible) do not display data or row and column labels.TAIL
You can +TXT
You can use the horizontal scrollLimit property to hide the far right columns of a pickList or a dataSheet from users. Create a new pickList named
test" and enter the following lines into the Message Box to label the pickList's columns and give it some data:
set the colNames of lst "test" to
"data1" & return & "data2" & return &
"secret1" & return & "secret2"
set the collabels of lst "test" to true
set the horizontal scroll of lst "test" to true
put "a" & tab & "b" & tab & "c" & tab & "d"
into lst "test"
Resize the pickList so that only the first two columns are visible. Try scrolling horizontally; you should be able to see the data in all of the columns. Now enter the following line in the Message Box:
set the horizontal scrollLimit of lst "test" to 2
The last two columns of the pickList are now effectively hidden, and cannot be scrolled to.TAIL
Applies +TXT
/data
Applies to datasheets, pickLists
MOCELL10>LST
MOCELL10
DataScroll Propertyerty
Reference PropertyPROP
popupnum
96bkgd
data
Reference PropertyTAIL
+T+TXT
get the {reference | ref} of <object>ADDD
The refe+TXT
The reference property returns an unambiguous and unique specifier for <object>. This reference property cannot be set by the user.
For an object, the reference property is returned in the following format:
<layer> object id <id> of <layer> id <id> of
stack <stack name>
For a card or background, the reference property is returned in the following format:
<layer> id <id> of stack <stack name>
For a stack, the reference property is returned in the following format:
stack <stack name>TAIL
The refe+TXT
The reference property can be used to access an object from a different card or even a different stack. You might use this property when you want to perform some action, such as hiding, disabling, or emptying, on a number of objects in more than one stack at a time.
The following button script adds the reference properties of all fields on the current card to a list of reference properties stored in a field named "Field Refs" on the first card of a stack name "mylib.sta". The lines of the "Field Refs" field could be used to access any field, on any card of any stack, whose reference property has been added.
on mouseUp
repeat with i=1 to the number of fields
put the reference of field i & return after
fld "Field Refs" of card 1 of stack "mylib.sta"
end repeat
end mouseUpTAIL
Applies +TXT
/data
Applies to all objects, cards, backgrounds, stacks
MOCELL10>LST
MOCELL10
Class Name Propertyerty
ID Propertyrtyoperty
Name Propertypertyy
Random FunctionPROP
popupnum
46bkgd
data
Random FunctionTAIL
+T+TXT
the random of <upperlimit>
random (<upperlimit>)ADDD
The rand+TXT
The random function returns a randomly selected integer between 1 and <upperlimit>, inclusive. The random number generator is automatically seeded from the outset, so it always returns a new sequence. If you need to generate a predictable sequence for testing purposes, use the setRandomSeed command.
Notes:
To get a random number within a specified range from <lowerlimit> to <upperlimit>, use the following syntax:
(the random of (<upperlimit>-<lowerlimit> +1))
+ (<lowerlimit>-1)TAIL
ll+TXT
The following function computes a random integer between two specified integers when passed the lesser of the two numbers as its first parameter and the greater of the two as its second parameter:
function random2 lower,upper
return random(upper-lower+1) + lower -1
end random2
Place the function just described into the script of a stack and test it by typing the following in the Message Box:
random2 (10, 15)
A number between 10 and 15, inclusive, is returned.
random2 (-5, 5)
A number between -5 and 5, inclusive, is returned.TAIL
10>LST
MOCELL10
SetRandomSeed Commandand
Prepare CommandPROP
popupnum
73bkgd
data
Prepare CommandTAIL
+T+TXT
prepare <movie>ADDD
URE+TXT
The prepare command prepares a movie for playback by opening the file on the disk or requesting a stream from the server, allocating memory, and performing some initialization.
Notes:
Every movie playback must be preceded by a prepare. If you use the play command without first using the prepare command, the movie object performs an implicit prepare to do the necessary work. The following code:
on mouseUp
prepare mov 1
play mov 1
end mouseUp
performs exactly the same functions as:
on mouseUp
play mov 1
end mouseUp
Decoupling the prepare command from the play command allows you to prepare a movie well in advance of actually playing the movie, which is an advantage in a networked environment where requesting a stream from the server may be time
consuming and expensive.
For example, if you create an application in which a user is solving a puzzle, the application can be busy preparing the "You Win!" and "Try Again" movies in the background, perhaps taking up 20 seconds that the user doesn't notice while engrossed in solving the puzzle.TAIL
PURE+TXT
The following handler prepares a movie whenever a card is opened.
on openCard
prepare movie "Instructions"
end openCard
The following handler in a button script plays a movie when the user clicks on the button:
on mouseUp
play movie "Instructions"
end mouseUpTAIL
RE+TXT
/data
Applies to movies
PURE>LST
MOCELL10
Play File Command
Release CommandCommand
Stop Commandand
Print Card CommandPROP
popupnum
74bkgd
data
Print Card CommandTAIL
+T+TXT
print {{all | <number>} cards | <card>}ADDD
The prin+TXT
The print command is used to send the contents of one or more cards to the currently selected printer.
print all cards prints all cards located in the current stack
print <number> cards prints a specified number of cards from within the current stack
print <card> prints only the specified target card
Notes:
Objects whose dontPrint property is set to true will not appear on a printed card.TAIL
The foll+TXT
The following statements are all valid uses of the print command:
print this card
print next card
print the first card of this stack
print card "menu card"
print 5 cardsTAIL
10>LST
MOCELL10
Close Printing Commandmand
Open Printing Command] <application> Command
DontPrint Propertyerty
Properties PropertyPROP
popupnum
94bkgd
data
Properties PropertyTAIL
+T+TXT
get the [custom] properties of <object>ADDD
The prop+TXT
The properties property, which is read
only, returns a comma-delimited list of the names of all custom properties associated with an object. Custom properties are defined by issuing the add property command.
Notes:
You can use the list function to quickly obtain a list of objects with a specified custom property.TAIL
The following function uses the properties property to check whether an object has a certain custom property. The function is passed an object reference as its first parameter and the name of the property to check for as the second parameter. The function returns true if the object has the specified property, and false if it does not:
function hasProperty objref, propname
repeat with i=1 to the number of items in the
properties of objref
if item i of the properties of objref is
propname then return true
end repeat
return false
end hasProperty
To check whether a button named "my_button" has the property country, you could use the previous function as follows:
hasProperty ("btn my_button", country)TAIL
Applies +TXT
/data
Applies to all card objects, backgrounds, cards, stacks
LL10>LST
MOCELL10
Remove Property Commandmand
Add Property Commandmand
List Functiontion
PopupMenu CommandPROP
popupnum
72bkgd
data
PopupMenu CommandTAIL
+T+TXT
popupMenu <itemList> at x,y> [with <integer>]ADDD
PURE+TXT
The popupMenu command displays a popup-type menu that contains the return-delimited items listed in <itemList>. The top-left corner of the line specified by <integer> is displayed at the x and y pixel coordinates specified in <x,y>.
If the user selects an item from the popup menu by positioning the cursor over the item and releasing the mouse button, the line number of the selected item is placed into the variable it. If no item is selected, zero is returned in it.
Notes:
On the Macintosh, because pop-up menus display only while the mouse button is depressed, popupMenu cannot be used within a mouseUp handler.
On Windows, pop-up menus can be displayed while the mouse button is up, in which case a selection is made by clicking on the desired line of the menu. On pop-up menus displayed while the mouse button is up or displayed at a location not under the mouse pointer, the first line of the menu is highlighted.
Pop-up menus that overlap the top or bottom of the screen on Windows do not scroll automatically as they do on the Macintosh.TAIL
PURE+TXT
Add the following handler to a card to display a popup menu of color names wherever the user clicks on the card:
on mouseDown
put "Red" & return & "Green" & return &
"Blue" into menu_list
popupMenu menu_list at the mouseLoc
if it is not 0 then
put line it of menu_list into fld "color name"
end if
end mouseDownTAIL
PURE>LST
MOCELL10
There are no related topics
Put CommandPROP
popupnum
76bkgd
data
Put CommandTAIL
T+TXT
For bitmaps:
put {<bitmap> | empty} into <bitmap>
For text containers (variables, fields, pickLists, dataSheets, dataSheets, charts):
put <source> [into| before | after
[<chunk> of] <container>]ADDD
The put +TXT
The put command places a value into a container.
into replaces the current contents of the container
before places the source value before the indicated destination; before does not apply to dataSheets, pickLists, or charts or dataSheets
after appends the source value after the indicated destination; for dataSheets, pickLists, and charts, after does not apply to cell chunks
When working with bitmap objects, you can use the put command to perform copy and clear operations on the images in a bitmap.
Notes:
If no destination container is specified, the put command places the value in the Message Box.
If Oracle Media Objects doesn't recognize the destination container, it creates a new local variable with that name.
You can delete the value in a container by putting the constant empty or "" into it. This does not delete the container itself. You can also specify a chunk expression to insert, replace, or delete a portion of the contents.
The put command cannot be used to change the value of a property; the set command performs this function.TAIL
Create a+TXT
Create a text field and named it "test". Type the following lines in the Message Box and press Enter after each:
put "Access your data" into field "test"
put "from the desktop" after word 3 of field "test"
put "Oracle Media Objects:" into myvariable
put myvariable before word 1 of field "test"TAIL
MOCELL10
Get Commandmand
Set Commanded Command
&INFO
Top PropertyPROP
popupnum
137bkgd
data
Top PropertyTAIL
set the top of {<object> | {card | cd} <window>}
to <number>ADDD
RE+TXT
The top property is the position of the top of an object. The position is measured in pixels from the top of the card window.
Notes:
You use the top property to determine or change the value of item 2 of the rectangle property (left, top, right, bottom) when applied to the specified object. You can set the top property of an object to a value off the screen, which will effectively hide the object.
Changing the top property does not change the size of the object.TAIL
PURE+TXT
/data
Applies to all card objects, backgrounds, card windows, message box, toolbar
PURE>LST
MOCELL10
Bottom Propertyperty
BottomRight Propertyerty
Left Propertyrtyy
Location (Loc) Property
Rectangle Propertyerty
Right Propertyoperty
TopLeft Propertyerty
ReleaseStack MessagePROP
popupnum
39bkgd
data
ReleaseStack MessageTAIL
+T+TXT
on releaseStack
end releaseStackADDD
RE+TXT
The releaseStack message is generated whenever a library stack is made inactive through the issuance of the release library command.
Notes:
A releaseStack handler should verify that the stack in which the handler resides is the intended recipient of the message. If the newly deactivated library stack does not handle the releaseStack message, the message is passed up the hierarchy and will be sent to other active library stacks until it is handled.TAIL
PURE+TXT
Place the following handler in the script of the stack you intend to library. The handler checks that the stack is the intended recipient of the releaseStack message. If the stack is correct, a dialog box is displayed to confirm the release of the stack.
on releaseStack
if the name of the target is the name of me then
answer "Stack" && the short name of
me && "released."
else
pass releaseStack
end if
end releaseStackTAIL
PURE+TXT
/data
Sent to the most recently deactivated library stackTAIL
PURE>LST
MOCELL10
Release Library Commandmand
Library Command Command
LibraryStack MessagesageADDD
Select CommandPROP
popupnum
87bkgd
data
Select CommandTAIL
+T+TXT
For all objects (authoring environment only):
select <object | empty>
For chunk expressions:
select <chunk> of <field | dataSheet | variable>ADDD
PURE+TXT
The select command has two functions:
(AUTHORING ENVIRONMENT ONLY) selects any Oracle Media Objects object
selects a chunk expression from a field, dataSheet, or variabl
When using the select command to select an object, the correct tool is automatically chosen depending on the selected object.
The select empty command deselects text and removes the insertion point.
Notes:
The select command ignores the lockText property from within a field. Changes typed into the field are recognized only when the lockText property of that field is false and the stack is not protected from modification.TAIL
URE+TXT
Create a button and call it
selectMe". Now type the following into the Message Box and press Enter:
select btn selectMe
Notice that the button is selected and the Button toolbar is displayed.
Create a field named
test". Type several lines of text into the field. Next, type the following lines into the Message Box and press Enter after each. Each line highlights the appropriate text.
select before word 2 of line 1 of field "test"
select char 5 to 9 of field "test"
select line 2 of field "test"
PURE+TXT
/data
Applies to all objects
PURE>LST
MOCELL10
SelectedObject Functiontion
Selection Functiontion ADDD
Realize CommandPROP
popupnum
79bkgd
data
Realize CommandTAIL
+T+TXT
realize <palette>ADDD
E+TXT
The realize command realizes, or makes active, the color lookup table (CLUT) stored in a particular palette object
Notes:
Once a palette object has been realized, its CLUT is global to the screen and affects all 256-color graphics on the screen, including other palettes and screen elements such as the toolbar.
The highest-numbered visible palette object is realized automatically when the card on which it resides is opened.
Once a palette has been realized, its CLUT is active until either:
The realize command is issued with another palette object as its argument
A card is opened that contains a different CLUT in a visible palette objectTAIL
The row chunk yields all of the values in a particular row or range of rows in a multi line object. In the returned value, each row is delimited by returns; each column is delimited by tabs.TAIL
PURE+TXT
You can use a field and a pickList in conjunction to simulate a combo box. Create a field named Fruits and place the following handler into its script:
on openField
show lst "theList"
end openField
Create a pickList named "theList". Type the following in the Message Box, and press Enter:
put "Apples" & return & "Oranges" & return & "Pears" into lst "theList"
Now place the following handler into the pickList's script:
on mouseUp rowNum
put row rowNum of me into fld "Fruits"
hide me
end mouseUp
Hide the pickList and click in the field. The pickList appears and you can pick a fruit, after which the pickList disappears.TAIL
PURE>LST
MOCELL10
Cell Tabular Chunkhunk
Column Tabular ChunkhunkADDD
SharedData PropertyPROP
popupnum
117bkgd
data
SharedData PropertyTAIL
+TX+TXT
set the sharedData of
<bitmap | dataSheet | field | palette | pickList>
to <boolean>ADDD
PURE+TXT
The sharedData property applies only to objects residing on the background. If the sharedData property of an object is true, any data contained in the background object appears on every card sharing that same background. If the sharedData property of an object is false, the data contained in the object is unique to every card sharing the background.
The default value of sharedData is true.
Notes:
Use caution when toggling sharedData on and off. If sharedData is set to false and you are displaying unique data on each card using a shared background object, and you then turn sharedData on, you will lose data on all cards except the current card.TAIL
PURE+TXT
/data
Applies to bitmaps, datasheets, fields, palettes, picklists
MOCELL10
There are no related topics
Release CommandPROP
popupnum
80bkgd
data
Release CommandTAIL
+T+TXT
release <movie>ADDD
URE+TXT
The release command disassociates movie resources from its movieFile.
Notes:
To conserve system resources, you should use the release command whenever you don't expect to display the movie.
A release occurs automatically in the following situations:
the movie object is deleted
the movieFile property is changed
the stack is closed
the user navigates to a card or background that does not contain the movieTAIL
PURE+TXT
Suppose that you want to display an opening logo movie once, when you open a stack. Assume that the movieFile property is already set.
First, create a movie object and name it
Logo". Next, place the following handler into the script of the stack:
on openStack
show movie "Logo"
prepare movie "Logo"
play movie "Logo"
end openStack
Finally, place the following handler into the script of movie "Logo":
on playStopped
hide movie "Logo"
release movie "Logo"
end playStoppedTAIL
PURE+TXT
/data
Applies to movies
PURE>LST
MOCELL10
Prepare Commandand
LockText PropertyPROP
popupnum
67bkgd
data
LockText PropertyTAIL
+T+TXT
set the lockText of <object> to <boolean>ADDD
The lock+TXT
The lockText property determines whether the text of a field or cell of a dataSheet can be edited. The default value is false, which allows editing.
For fields, if the Browse cursor is moved over a text area in which lockText is set to false, the cursor becomes an I-beam. Clicking in such an area establishes a text insertion point. If a field's lockText property is true, the cursor does not change and text cannot be inserted.
For fields, when the lockText property is false, the messages mouseDown, mouseStillDown, and mouseUp are not sent to the object when you click in a field, although they are sent when the user clicks on the field or dataSheet label. When lockText is true, the messages openField and closeField are not sent when the user clicks in the field.
For dataSheets, when the lockText property is false, clicking in a cell allows you to edit the contents of that cell. Pressing Enter on the Macintosh or Windows moves the insertion point one cell to the right. If the insertion point is in the last column (column 256), pressing the right arrow key or Enter places the insertion point in the first column of the next row. Pressing the left arrow key at this point would place the insertion point in the last column of the previous row.
For dataSheets, when the lockText property is true, the dataSheet behaves exactly like a pickList when the user clicks in it: clicked rows are selected and hilited. Note that you can still import data into a dataSheet when this property is true; you simply cannot perform cell-level editing.TAIL
a+TXT
Create a background field called
date". Assuming that you already have a handler that automatically puts the date into this field (see openBackground for an example), you don't want users to be able to change the contents of that field, so type the following in the Message Box and press Enter:
set the lockText of bg field "date" to trueTAIL
plies +TXT
/data
Applies to datasheets, fields
MOCELL10>LST
MOCELL10
There are no related topics
OINFO
Not OperatorPROP
popupnum
12bkgd
data
Not OperatorTAIL
not <boolean>ADDD
PURE+TXT
The not operator returns true if the expression on its right is false, and false if the expression on its right is true.TAIL
PURE+TXT
Create a button named
Test" and turn its autoHilite property off in the Info dialog box. Place the following handler into the button's script:
on mouseUp
set the hilite of me to (not the hilite of me)
end mouseUpTAIL
URE>LST
MOCELL10
There are no related topics
Remove Property CommandPROP
popupnum
82bkgd
data
Remove Property CommandTAIL
+T+TXT
remove property <property> from <object>ADDD
The remo+TXT
The remove property command disassociates a custom property from an object. <property> must be the name of a currently defined custom property for <object>.
You cannot remove a standard property from an object.TAIL
Create a+TXT
Create a new button named
Show Properties" and place the following handler into its script:
on mouseUp
put the properties of me
end mouseUp
Now type the following lines in the Message Box, pressing Enter after each:
add property "custom1" to btn
"Show Properties"
add property "custom2" to btn
"Show Properties"
Switch to Browse mode and click the "Show Properties" button to see a list of its properties in the Message Box, like this:
custom1, custom2
Type the following line in the Message Box and press Enter:
remove property "custom1" from btn
"Show Properties"
Now click the button once more to see the list of properties.TAIL
MOCELL10>LST
MOCELL10
Add Property Commandmand
Properties Propertyerty
/INFO
Type PropertyPROP
popupnum
139bkgd
data
Type PropertyTAIL
+TX+TXT
set the type of <palette> to
<windows | macintosh>ADDD
This pro+TXT
This property determines whether the palette functions like a Windows palette or a Macintosh palette.
Notes:
You can use either palette on either machine, but using a Macintosh palette on a Windows machine will cause a strange display. This is due to the fact that Windows reserves the top and bottom 10 colors for system use, leaving 236 colors that the user can change.
The Macintosh reserves only two colors, white and black. You will not notice any adverse effect if you use a Windows palette on a Macintosh, but you will have only 236 custom colors, not the 254 that you would normally get on the Macintosh.TAIL
s +TXT
/data
Applies to palettes
MOCELL10>LST
MOCELL10
Entries Propertyerty
Target Special ContainerPROP
popupnum
4bkgd
data
Target Special ContainerTAIL
++TXT
the targetADDD
The targ+TXT
The target identifies the first object to receive the message most recently issued by Oracle Media Objects. The contents of the target can be changed with the put command.
The target function identifies the object by its abbreviated name property. The name property consists of the type of object and the name of the object (enclosed in quotation marks). If the object's name property is empty, the ID number is identified instead.TAIL
Create a+TXT
Create a button with the following script:
on mouseUp
put the target
end mouseUp
To return the button name, click on the button.
10>LST
MOCELL10
There are no related topics
TextAlign PropertyPROP
popupnum
130bkgd
data
TextAlign PropertyTAIL
+TX+TXT
For the text tool:
set the textAlign to <alignment>
For objects:
set the textAlign of [<part> of] <object>
to <alignment>ADDD
RE+TXT
The textAlign property determines the alignment of the text in an object or in a chunk of an object, except field chunks. Such text might be a button or movie label, a field's text, a column of a dataSheet, or text typed with the text tool in painting. Each property setting produces the effect described in the following list:
Property Setting: right
Effect: right-justified
Property Setting: left
Effect: left-justified
Property Setting: center
Effect: centered
You can apply the textAlign property to the following object parts:
Bitmap and field parts: label
DataSheet and pickList parts: colLabel, ¥column (col)
Setting textAlign on an entire field, pickList, or dataSheet affects only the data contained in the object.TAIL
PURE+TXT
Create a button with the following script:
on mouseUp
choose text tool
put the textAlign into format
if format = "left" then set the textAlign to center
click at 100,100
type "Oracle Corporation"
choose browse tool
end mouseUp
Return to Browse mode and click on the button.TAIL
PURE>LST
MOCELL10
There are no related topics
Repeat WhilePROP
popupnum
14bkgd
data
Repeat WhileTAIL
repeat while <condition>
end repeatADDD
The repe+TXT
The repeat while control statement repeats a part of a script while a specific condition is true. The condition must supply a value of true or false.
Notes:
Repeat while <condition> produces the same result as repeat until not <condition>.TAIL
The foll+TXT
The following field script continuously adds 1 to an amount held within a field named
total" while the mouse button is down and in that field:
on openField
put 0 into field "total"
repeat while the mouse is down
add 1 to field "total"
end repeat
end openFieldTAIL
OCELL10>LST
MOCELL10
Exit Repeat Control Statement
Next Repeat Control Statement
Repeat Control Statement
Repeat Forever
Repeat Until
Repeat With
ReturnInField MessagePROP
popupnum
40bkgd
data
ReturnInField MessageTAIL
+T+TXT
on returnInField
end returnInFieldADDD
The retu+TXT
The returnInField message is sent when the Enter key on MS-Windows or the Return key on Macintosh is pressed while an insertion point or selection is in a field. If you want the key press to have its usual effect, you must pass returnInField at the end of your handler.
Notes:
For cross
platform compatibility reasons, it is necessary to use the ReturnInField message in conjunction with the Enter key on Windows platforms. The EnterInField message is used in conjunction with Ctrl-Enter on Windows, or the Enter key on the Macintosh.TAIL
a+TXT
Create a field with the showLines property set to true. Resize the field so that only one line is visible. Put the following into the field script:
on returnInField
answer "Sorry, only one line"
end returnInField
Return to Browse mode and type a line into the field. Press the Enter key.TAIL
to +TXT
/data
Sent to a fieldTAIL
MOCELL10>LST
MOCELL10
EnterInField Messagesage
ReturnKey Messagesage
2INFO
UnitRate PropertyPROP
popupnum
140bkgd
data
UnitRate PropertyTAIL
+TX+TXT
the unitRate of <movie | path | sound | timer>ADDD
PURE+TXT
The unitRate property is read-only and indicates the number of units of the time coordinate system (specified by the units property) that pass per second; thus, a value of 1 represents a time system measured in seconds, while a value of 60 equates to sixtieths of a second.
The default value of the unitRate property is 60
a units property setting of ticks. The other possible values are 1000
a units property setting of milliseconds, or 1
a units property setting of seconds.
Notes:
The unitRate property applies only to the current setting of the units property. It is not related to the optional millisecond/ticks qualifier used in the start command. The start command applies only to timers.TAIL
/data
Applies to movies, paths, sounds, timers
RE>LST
MOCELL10
Units Propertyerty
Reset PaintPROP
popupnum
data
Reset PaintTAIL
reset paintTAIL
NOT AVAILABLE IN THE PLAYER
The reset paint command sets the global painting properties, which are used by the tools in the painting toolbar, to their default values. The following lists these properties and their default values.
_______________________
Property Default Value
_______________________
brush 8
centered false
snapToGrid false
filled false
linesize 1
pattern 12
polysides 4
textalign left
textfont system
textsize 12
textstyle plain
textheight 16TAIL
MOCELL10
There are no related topics
TextFont PropertyPROP
popupnum
132bkgd
data
TextFont PropertyTAIL
+TX+TXT
For the text tool:
set the textFont to <font>
For objects:
set the textFont of [<part> of | <chunk> of]
<object> to <font>ADDD
E+TXT
The textFont property determines the typeface of an object's text or text part or of text typed at an insertion point selected with the text tool. Object parts are listed in the following table:
Bitmap and field parts: label
DataSheet and pickList parts: colLabel, column (col)
Field chunks: char, item, line, word
The textFont property can be set to any font that is installed and available in the user's computer system. The textFont property can be changed by using the set command and retrieved by using the get command.
Notes:
If different fonts are used in a text selection, textFont returns the font of the first character in the selection.
If you wish to change the textFont of a chunk of a field, the field's multiFont property must be set to true. You must also specify the text whose font you wish to change:
set the textFont of char 5 to 10 of fld 2 to Helv
If the multiFont property is not true then the preceding line sets the entire field to Helvetica.TAIL
PURE+TXT
Create a field "Test" and type a word into it. Now type the following into the Message Box:
set the textFont of word 1 of field "Test" to PalatinoTAIL
PURE+TXT
/data
Applies to bitmaps, buttons, datasheets, fields, groups, movies, picklists, shapes, the text tool (global)
E>LST
MOCELL10
MultiFont Propertyerty
TextAlign Propertyerty
TextColor Propertyerty
TextHeight Propertyerty
TextSize Propertyerty
TextStyle Propertyerty ADDD
8INFO
AutoHilite PropertyPROP
popupnum
4bkgd
data
AutoHilite PropertyTAIL
++TXT
set the autoHilite of <button | shape | bitmap |
pickList | dataSheet> to <boolean>
bitmap |ADDD
The auto+TXT
The autoHilite property controls whether a button, shape, dataSheet, or pickList row is highlighted when clicked.
The visual effect of clicking on an object whose autoHilite property is true depends on the object style properties. For example, a rectangle-style button whose autoHilite is set to true is highlighted briefly when the user clicks on the button; but when the mouse button is released, the rectangle button returns to its unhighlighted state. However, clicking on a radio button whose autoHilite property is set to true toggles the state of the button: if it is highlighted, it becomes unhighlighted; if unhighlighted, it becomes highlighted.
Clicking in a pickList or dataSheet whose autoHilite property is true highlights the row that was clicked in. To highlight multiple rows, hold down the Shift key (for contiguous rows) or the Ctrl key (for non contiguous rows) while clicking. Note that the lockText of the dataSheet must be true for its rows to be hilighted.
Clicking on an object whose autoHilite property is false provides no visual effect, regardless of the style properties.
Notes:
The mouseUp and mouseDown messages themselves do not affect the highlighting of a button. It is the action of pressing and releasing the button that causes the button to be highlighted when the autoHilite property is set to true.TAIL
Create a+TXT
Create a button and name it "AutoHilite Off". Go to the button's Info dialog box and verify that autoHilite is not checked. Now create another button and name it "AutoHilite On". Go to this button's Info dialog box and check the autoHilite property.
Clicking on the "AutoHilite Off" button provides no visual response. Clicking on the "AutoHilite On" button provides a visual response similar to "turning on."TAIL
Applies +TXT
/data
Applies to buttons, datasheets, picklists, shapes
MOCELL10>LST
MOCELL10
Hilite Propertyproperty
Hilite Command
LockText Property
Unhilite Command
ReturnKey MessagePROP
popupnum
41bkgd
data
ReturnKey MessageTAIL
+T+TXT
on returnKey
end returnKeyADDD
The retu+TXT
The returnKey system message is sent to the current card when the user presses the Enter key, except while the user is responding to an answer or ask command orediting text in a dataSheet or an unlocked field. If the message is not intercepted, Oracle Media Objects executes the contents of the Message Box. If a field is open for text editing, pressing the Enter key types a return character in the field. In a dataSheet, pressing the Enter key moves the cursor to the next row.
The Return key on the Macintosh keyboard and the Enter key on the PC keyboard are equivalent in Oracle Media Objects. To ensure compatibility, use returnKey on both platforms.
Notes:
If you want to use the Message Box during development on a card that intercepts returnKey messages, add the following line to the top of your returnKey handler:
if the visible of the message then pass returnKeyTAIL
Sent to +TXT
/data
Sent to the current cardTAIL
LL10>LST
MOCELL10
ReturnInField Messagesage
ReverseOnReplay PropertyPROP
popupnum
97bkgd
data
ReverseOnReplay PropertyTAIL
+T+TXT
set the reverseOnReplay of <movie | path>
to <boolean>
set the playStyel of <movie | path>
to reverseOnReplayADDD
PURE+TXT
Note: The reverseOnReplay boolean property is one possible value for the playStyle property of movies and paths.
This is an alternative to setting the reverseOnReplay value of the playStyle property. Set reverseOnReplay to true if you would like the movie or path to reverse direction on replay. Set to false if you would like to turn this property off.
When reverseOnReplay is set to true and playNumber >1, each replay reverses the direction of the previous play.
Notes:
Even if reverseOnReplay is set to true, you must set playNumber >1 to produce the expected result.TAIL
PURE+TXT
/data
Applies to movies, paths
URE>LST
MOCELL10
PlayStyle Propertyrty
PlayNumber Propertyrty
Right PropertyPROP
popupnum
98bkgd
data
Right PropertyTAIL
+T+TXT
set the right of {<object> | {card | cd}
<window>} to <x,y>ADDD
E+TXT
The right property is the position of the right side of an object, measured in pixels, from the left side of the card window. The object's right position is expressed as an x, y screen coordinate where x and y are positive integers representing pixels.
You can use the right property to determine or change the value of item 3 of the rectangle property (left, top, right, bottom) when applied to the specified object or window.
Notes:
Changing the right property does not change the size of the object; the left property automatically changes by the same amount. To change an object's width, either set its width property or its rectangle property.TAIL
PURE+TXT
Create a button and name it "Test". Type the following lines in the Message Box and press Enter after each:
the right of button "test"
set the right of button "test" to the right of
button "test" + 50TAIL
PURE+TXT
/data
Applies to all objects, backgrounds, card windows, message box, toolbar
PURE>LST
MOCELL10
Bottom Propertyperty
BottomRight Propertyerty
Height Propertyerty
Rectangle Propertyerty
Top Propertyerty
TopLeft Propertyerty
Width Propertyrtyy
bINFO
OptionKey FunctionPROP
popupnum
41bkgd
data
OptionKey FunctionTAIL
+T+TXT
the optionKey
optionKey()ADDD
PURE+TXT
The optionKey function indicates whether the Alt key is being pressed. If the Alt key is being pressed, the function returns down; if the Alt key is not being pressed, the function returns up. The Option key on the Macintosh keyboard and the Alt key on the PC keyboard are equivalent in the Oracle Media Objects environment.
When placed in a card-level script, the following handlers allow the user to click on and drag any object. However, if the user clicks on the object while holding down the Alt key, Oracle Media Objects creates a duplicate of the object, which remains in the original object's position.
RE+TXT
The following handler causes any object to become
draggable"; that is, the user can click on it and drag the object around for as long as the mouse button remains down.
on mouseStillDown
set the location of the target to the mouseLoc
end mouseStillDown
The following handler checks the status of the Alt/Option key and, if it is down, creates a copy of the target object.
on mouseDown
if the optionKey is "down" then
lock screen
set the hilite of the target to false
select the target
Copy
choose Browse tool
Paste
unlock screen
else
set the location of the target to the mouseLoc
end if
end mouseDownTAIL
PURE>LST
MOCELL10
Clear Commandtion
CommandKey Functiontion
Copy Command as <filena
Copy Card Commandfilena
Create Card Commanddmman
Cut Commandmand
Paste Commandmmand
Paste Card Commandand
ShiftKey Functiontion
Scroll CommandPROP
popupnum
85bkgd
data
Scroll CommandTAIL
+T+TXT
For fields:
scroll <field> [from <startScroll>]
[to <endScroll>] in <integer>
[seconds | ticks | milliseconds]
[accelerate | decelerate | natural]
For pickLists and dataSheets:
scroll <pickList | dataSheet>
{horizontally | vertically}
[from <startScroll>] [to <endScroll>]
in <integer> [seconds | ticks | milliseconds]
[accelerate | decelerate | natural]ADDD
The scro+TXT
The scroll command moves the scrollPosition of the object (which is measured in pixels, not lines) from <startScroll> to <endScroll> in the number of seconds, ticks (sixtieths of a second), or milliseconds specified by <integer>.
If the [from <startScroll>] clause is omitted, animation begins at the current scrollPosition value. If the [to <endScroll>] clause is omitted, text scrolls forward by one line (i.e., by a number of pixels equal to the field's textHeight property).TAIL
Create a+TXT
Create a field and name it
Test". Enter a line of text. In the script of
Test" type:
on mouseUp
scroll me from 1 to 10 in 120 ticks
end mouseUp
Now click on field "Test". The field scrolls down through the text.TAIL
Applies +TXT
/data
Applies to fields, picklists, datasheets
L10>LST
MOCELL10
There are no related topics
RowDelim PropertyPROP
popupnum
100bkgd
data
RowDelim PropertyTAIL
+TX+TXT
set the rowDelim of <dataSheet> to <character>ADDD
PURE+TXT
The rowDelim property determines the character used to separate rows that you are importing into a dataSheet (either from another object or from an external file).
You can specify any single character as a row delimiter for a dataSheet. The default row delimiter is ^r., a carriage return character.
Notes:
Since the default column delimiter is ^t, a <tab> character, you should probably avoid using this as a row delimiter, as well.
When the user is directly editing a cell of a dataSheet, entering the current row
delimiter character will move the cell down one row; entering the column
delimiter will move the cell to the right. The Enter key will always move the insertion point one cell to the right; shift
Enter will move the insertion point one cell to the left. In addition, the user can always move the insertion point in any direction by using the arrow keys.TAIL
PURE+TXT
/data
Applies to datasheets
PURE>LST
MOCELL10
ColDelim Propertyerty
Sort Commandperty
RowHeight PropertyPROP
popupnum
101bkgd
data
RowHeight PropertyTAIL
+TX+TXT
set the rowHeight of <dataSheet | pickList>
to <integer>
dataSheet |ADDD
PURE+TXT
The rowHeight property determines the height in pixels of every row of a dataSheet or pickList or dataSheet. The rowHeight may be any positive integer from 1 to 32766; the default value is 17.
The rowHeight property is automatically adjusted to accommodate the text when the object's text font, size, or style is changed.TAIL
PURE+TXT
Create a pickList named "test" and then create a button named "Spacing" and place the following handler into its script:
on mouseUp
answer "Would you like to see your data
single or double spaced?" with "Single"
or "Double"
if it is "Single" then
set the rowHeight of pickList 1
to the textSize of pickList 1
else
set the rowHeight of pickList 1 to
2*the textSize of pickList 1
end if
end mouseUp
Enter some data into the pickList using a statement like the following.
put 3 & return & 5 & return & 7 & return &
35 & return & 70 & return & 8 into pickList 1
Press the "Spacing" button.TAIL
E+TXT
/data
Applies to datasheets, picklists
PURE>LST
MOCELL10
ColWidth Propertyerty
TextHeight Propertyerty
Import CommandPROP
popupnum
54bkgd
data
Import CommandTAIL
import <filename> into
<bitmap| dataSheet | field | pickList |
sound | card | background| field | "card" |
"bkgnd">
| field | "card" | "bkgnd"ADDD
For all of the objects listed, the import command puts the contents of <filename> into the specified object. or the paint layer of a card or background. For fields, the import command places a text file into a field
For dataSheets, the data in the text file should be delimited using the same row and column delimiters as the dataSheet. By default, the dataSheet uses tabs as a column delimiter and returns as a row delimiter. You can use special strings
^t for tabs and ^r for returns
in your data values to stand for tabs and returns.
Oracle Media Objects supports the following graphics file formats:
MS-Windows: .BMP, .PCX
Macintosh: PICT, PICT2, MacPaint
Oracle Media Objects supports the following sound file formats:
MS-Windows and Macintosh: AIFF, AIFC (with no compression), WAVE
Notes:
Oracle Media Objects double buffers the imported data of any media type. This means that you need two times the space of the data when importing.TAIL
Type the following into the Message Box and press Enter:
import "person.bmp" into bitmap 1
The following handler imports a Macintosh text file stored in the same folder as Oracle Media Objects, and places that file into the script of a button:
This is the scripting equivalent of the submenu "Save a Copy....". Use this command to save a copy of the current stack. Note that this command functions to save only the current stack.TAIL
PURE+TXT
Type the following into the Message Box
save a copy as "backup.sta"TAIL
PURE+TXT
/data
Applies to stacks
PURE>LST
MOCELL10
Clear Commandand
Copy Command as <filena
Copy Card Commandfilena
Create Card Commanddmman
Create Stack Commandmman
Cut Commandmand
Paste Card Commandand
Script PropertyPROP
popupnum
105bkgd
data
Script PropertyTAIL
+TX+TXT
set the script of <object> to <scriptText>ADDD
The scri+TXT
The script of an object is the set of event handlers and functions specifically associated with and stored with that object.
You use the script property to retrieve or to replace the script of the specified object. The value of the script property is the text string composing the script of the specified object. Script size is limited to 32K.
Notes:
When you set the script property using the set command, you replace the existing script entirely.TAIL
ate a+TXT
Create a field called
scriptbox". Create a button called
Test". Enter the following into the field:
on mouseUp
put "Hello, world."
end mouseUp
In the Message Box, type the following and press Enter:
set the script of button "Test" to field "scriptbox"
Now when you press the "Test" button, the message "Hello World" appears in the Message Box.TAIL
Applies +TXT
/data
Applies to all objects, backgrounds, cards, stacks
MOCELL10>LST
MOCELL10
There are no related topics
Scaling PropertyPROP
popupnum
104bkgd
data
Scaling PropertyTAIL
+TX+TXT
set the scaling of [leg <number> of] <path> to <boolean>ADDD
The scal+TXT
The scaling property allows you to create the illusion of three
dimensional animation by resizing (or scaling) an object from small to large, or vice versa, as it moves along a path.
Note that the scaling property only enables or disables scaling; you still must specify the starting and ending sizes of the object along the path with the startSize and endSize properties if you want to create the effect of three
dimensional scaling along the path.
If a leg is not specified, the value of the scaling property applies to the first leg only.TAIL
Applies +TXT
/data
Applies to paths, or legs of paths
MOCELL10>LST
MOCELL10
StartSize Propertyrty
EndSize Propertyerty
ScreenRect FunctionPROP
popupnum
48bkgd
data
ScreenRect FunctionTAIL
+T+TXT
the screenRect
screenRect()ADDD
URE+TXT
The screenRect() function returns the global coordinates of the screen size in pixels. The coordinates are returned as left, top, right, bottom.TAIL
PURE+TXT
To find the global coordinates of your screen, type the following function in the Message Box and press Enter:
screenRect()TAIL
PURE>LST
MOCELL10
There are no related topics
ScriptFont PropertyPROP
popupnum
106bkgd
data
ScriptFont PropertyTAIL
+TX+TXT
set the scriptFont to <font>ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
The scriptFont property determines the font in which all scripts are displayed and printed. <font> is an expression that yields a valid font name in your machine's system or in the current stack.TAIL
PURE+TXT
To see what font is currently used to display and print your scripts, type the following into the Message Box and press Enter:
the scriptFont
To change the current font to Courier, type the following into the Message Box and press Enter:
set the scriptFont to "Courier"TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
ScriptStyle Propertyerty
ScriptSize Propertyerty
ScriptSize PropertyPROP
popupnum
107bkgd
data
ScriptSize PropertyTAIL
+TX+TXT
set the scriptSize to <number>ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
The scriptSize property determines the size of the font used to display and print scripts. You can obtain the scriptSize with the get or put commands and change it using the set command.TAIL
PURE+TXT
To see what font size is currently used to display and print your scripts, type the following into the Message Box and press Enter:
the scriptSize
To change the current font size to 12 point, type the following into the Message Box and press Enter:
set the scriptSize to 12TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
ScriptStyle Propertyerty
ScriptFont Propertyerty
ScriptStyle PropertyPROP
popupnum
108bkgd
data
ScriptStyle PropertyTAIL
+TX+TXT
set the scriptStyle to <style>ADDD
PURE+TXT
NOT AVAILABLE IN THE PLAYER
The scriptStyle property determines the style of the font used to display and print scripts. The standard Oracle Media Objects font styles are bold, underline, plain, italic; condense, extend, outline, and shadow are also available on the Macintosh.TAIL
PURE+TXT
the scriptStyle
To change the current script style to underline, type the following into the Message Box and press Enter:
set the scriptStyle to underlineTAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
ScriptStyle Propertyerty
ScriptFont Propertyerty
If Control StatementPROP
popupnum
7bkgd
data
If Control StatementTAIL
++TXT
if <condition> then
<commands>
[else if <condition> then
<commands>]
[else
<commands>]
end ifADDD
The if c+TXT
The if control statement is used to execute one or more commands if a condition is true. If the condition is false, the if control statement skips those commands and executes an optional set of one or more commands.TAIL
can +TXT
You can use the if control statement to facilitate an invoicing system in which customers with purchases of less then $10,000 receive a 5% discount, and customers with purchases more than $10,000 receive a 10% discount.
1. Create a field and name it
sales".
2. Enter a dollar amount into the field.
3. If...then statements cannot be issued from the
Message Box, so create a button with the following script:
on mouseUp
put field "sales" into sales
if sales > 10000 then
put 10 into discount
else
put 5 into discount
end if
type discount
end mouseUp
The If...then construction in the previous example is relatively simple, because only one command is used after then and else. It is possible, however, to use several commands. Change your button's script to look like the following:
on mouseUp
put field "sales" into sales
If sales > 10000 then
put 10 into discount
put sales/100*90 into total
else
put 5 into discount
put sales/100*95 into total
end if
type discount &
type total
end mouseUpTAIL
OCELL10>LST
MOCELL10
There are no related topics
9INFO
UseLegScaling PropertyPROP
popupnum
142bkgd
data
UseLegScaling PropertyTAIL
+TX+TXT
set the useLegScaling of <path> to <boolean>
set the playStyle of <path> to <useLegScaling>ADDD
PURE+TXT
Note: The useLegScaling boolean property is one possible value for the playStyle property of paths.
When UseLegScaling is set to true, the play will use the scaling values of individual legs rather than the one set for the path as a whole. When UseLegScaling is set to false, the play will use the scaling value for the path as a whole rather than those set for the individual legs.TAIL
PURE+TXT
/data
Applies to paths
PURE>LST
MOCELL10
UseLegTiming Propertyrty
Blocking Propertyrty
PlayStyle Propertyrty
BINFO
Visual Effect CommandPROP
popupnum
106bkgd
data
Visual Effect CommandTAIL
visual effect <effectname>
[in <integer> [ticks | seconds | milliseconds]]
The visual effect command produces a visual effect when moving from the current card or stack to the destination card or stack.
You can specify the speed at which a visual effect occurs by specifying the number of ticks in which the transition should be completed.
Visual effects apply when navigating to another card or stack or when unlocking the screen on the same card. Therefore, the command must be reissued for every navigational move.
The default time unit is ticks.
The following visual effects are available in Oracle Media Objects:
blinds {up | down | left | right}
dissolve
iris {open | close}
pixelDissolve (Macintosh only)
scroll { up | down | left | right}
wipe {up | down | left | right}
zip {up | down | left | right
Each visual effect is described below:
blinds: This simulates the closing of a venetian blind, but wipes the destination card or stack over the current card or stack..
dissolve: The current card or stack slowly dissolves to reveal the destination card or stack.
iris: This is sometimes called zoom. This effect either opens or closes the destination over the current card or stack.
pixelDissolve: On the Macintosh, this effect dissolves from the current to the destination object one pixel at a time. This is a smoother effect than dissolve. On Windows, this is the same as the dissolve effect. Note: The toolbar must be hidden for the pixelDissolve effect to work.
scroll: This effect scrolls the destination over the current object. Scroll differs from the wipe effect in that it actually moves, rather than simply revealing, the destination object.
wipe: This effect wipes the destination over the current object.
zip: This effect move from the current to the destination object one line at a time, skipping every other line. After it reaches the end of the object, it reverses and fills in the skipped lines.TAIL
Create a new stack with two cards. Paint one card red and the other card yellow. Go to the first card and create a button with the following script:
on mouseUp
visual effect dissolve in 10 seconds
go to next card
visual effect zip close in 5 seconds
go to previous card
visual effect iris open in 5 seconds
go to next card
visual effect wipe right in 5 ticks
go to previous card
visual effect scroll down
go to next card
visual effect scroll up 10 seconds
go to previous card
end mouseUp
Return to Browse mode and click on the button.TAIL
/data
Applies to cards, stacks
MOCELL10
There are no related topics
TextColor PropertyPROP
popupnum
131bkgd
data
TextColor PropertyTAIL
+TX+TXT
set the textColor of [<part> of | <chunk> of]
<object> to <color>ADDD
The text+TXT
The textColor property determines the color of the text in some objects. Color can be applied to the following object parts:
Bitmap and field parts: label
DataSheet and pickList parts: colLabel, column (col)
Field chunks: char, item, line, word
When setting the textColor property, you may use a number or a named color constant for the <color> parameter. However, the value of the textColor property is always returned as a number. The textColor property can be changed by using the set command and retrieved by using the get command.
Setting textColor for movies and bitmaps changes the color of the object's label only.
If you do not specify a part, setting textColor on a field, pickList, or dataSheet affects only the data contained in the object.
Notes:
If you wish to change the textColor of a chunk of a field, the field's multifont property must be set to true. You must specify the text whose color you wish to change using a command such as:
set the textColor of word 2 of fld id 2 to green
If the multifont property is not true then the preceding line sets the entire field to green.
For fields, the textColor is synonymous with the foreColor if multiFont is set to false and you are setting the text color of the whole field. For example,
set the foreColor of fld id 2 to green
set the textColor of fld id 2 to green
are equivalent scripting operations; however, there is no concept of foreColor for field labels or chunks, or for whole fields if multiFont is set to true.
Color numbers range from 0 to 255. The following lists the named color values.
Color Name Color Number
_____________________________
black 255
white 0
red 216
green 229
blue 236
cyan 192
magenta 32
yellow 5
purple 104
navy 239
olive 89
maroon 219
lime 185
light gray 247
gray 249
aquamarine 194TAIL
Applies +TXT
/data
Applies to bitmaps, datasheets, fields, movies, charts, datasheets, picklists
MOCELL10>LST
MOCELL10
ForeColor Propertyrty
MultiFont Propertyerty
TextFont Propertyerty
TextHeight Propertyerty
TextSize Propertyerty
TextStyle Propertyerty
JINFO
WindowTitle PropertyPROP
popupnum
148bkgd
data
WindowTitle PropertyTAIL
+TX+TXT
set the windowTitle to <newtitle>ADDD
E+TXT
The windowTitle property determines the name displayed in the window title bar. This property can be changed using the set command and retrieved using the get command.
Notes:
Changing a window's windowtitle does not affect the name of the stack.
The windowTitle is reset whenever card navigation occurs.TAIL
PURE+TXT
Type the following into the Message Box:
set the windowTitle to mycardTAIL
PURE+TXT
/data
Applies to card windows
URE>LST
MOCELL10
There are no related topics
KINFO
WindowType PropertyPROP
popupnum
149bkgd
data
WindowType PropertyTAIL
+TX+TXT
set the windowType to <type>ADDD
PURE+TXT
There are six different values for the windowType property in Oracle Media Objects:
standard
zoom
dialog
plain
noSize
moveableDialogTAIL
E+TXT
set the windowtype to plain
set the windowtype to dialogTAIL
URE+TXT
/data
Applies to card windows
URE>LST
MOCELL10
WindowTitle Propertyerty
Hide {screen element} C@
ommand
=INFO
Version FunctionPROP
popupnum
67bkgd
data
Version FunctionTAIL
+T+TXT
put the [long] version
version()ADDD
The vers+TXT
The version function returns the version of Oracle Media Objects. The long option returns the entire name and extended version number of Oracle Media Objects. By default, the version function returns the short version, or simply the major release number.TAIL
Type the+TXT
Type the following into the Message Box and press Enter:
put the version
Now type the following into the Message Box and press Enter:
put the long versionTAIL
MOCELL10>LST
MOCELL10
There are no related topics
TextHeight PropertyPROP
popupnum
133bkgd
data
TextHeight PropertyTAIL
+TX+TXT
For the text tool:
set the textHeight to <height>
For objects:
set the textHeight of <object> to <height>ADDD
The text+TXT
The textHeight property determines the vertical space for each line of text typed into an object or of text typed at an insertion point selected with the text tool.
You can use the textHeight to specify the leading in a particular field.
Notes:
In general, a text block's textHeight is automatically calculated whenever its textSize is set. Explicitly setting its textHeight will override this default textHeight. To return to the default textHeight, use the command:
set the textHeight of field 1 to emptyTAIL
To see t+TXT
To see the effect of changing the textHeight, go to a blank card and create a field named "test". Type some text into the field. Now, go to the Message Box and type the following and press Enter:
set the textHeight of field "test" to 30
The space between the lines of text is now larger.TAIL
lies +TXT
/data
Applies to buttons, datasheets, fields, groups, picklists, datasheets, shapes, the text tool (global)
CELL10>LST
MOCELL10
TextColor Propertyerty
TextFont Propertyerty
TextSize Propertyerty
TextStyle Propertyerty ADDD
5INFO
Unlock Messages CommandPROP
popupnum
103bkgd
data
Unlock Messages CommandTAIL
+TX+TXT
unlock messagesADDD
URE+TXT
The unlock messages command resumes the transmission of open, close, new, and delete system messages after a lock messages command has been issued.TAIL
PURE+TXT
The following handler uses the lock messages command in the script of a button to display every card in the stack without triggering any openCard or closeCard messages. The unlock messages command is used to resume the transmission of system messages. Try the handler without the lock messages command at the beginning to see the time difference.
on mouseUp
lock messages
repeat with i = 1 to the number of cards of
this stack
go to next card
wait 2 seconds
end repeat
unlock messages
end mouseUpTAIL
MOCELL10
LockMessages Propertyerty
Lock Messages Commandndnd
Unlock Screen Commandndnd
LockScreen Propertyerty
Lock Screen Commandndnd
TextStyle PropertyPROP
popupnum
135bkgd
data
TextStyle PropertyTAIL
+TX+TXT
For the text tool:
set the textStyle to <style>
For objects:
set the textStyle of [<part> of | <chunk> of]
<object> to <style>ADDD
The text+TXT
The textStyle property determines the style of a text chunk of an object or of text typed at an insertion point selected with the text tool. Object parts are listed in the following table:
Bitmap and field parts: label
DataSheet and pickList parts: colLabel, column (col)
Field chunks: char, item, line, word
Valid textStyle properties are listed below:
plain
italic
underline
password (fields only)
outline (Macintosh only)
shadow (Macintosh only)
condense (Macintosh only)
extend (Macintosh only)
Notes:
Fields may be set to password or bold, password styles through scripts only. For example,
set the textstyle of fld 1 to bold,password
Password style fields do not echo the text typed into them. Password, bold style fields echo as bullets the text typed into them.
If you wish to change the textStyle of a chunk of a field, the field's multiFont property must be set to true. You must also exactly specify the text whose style you wish to change;
set the textStyle of char 5 to 10 of fld 2 to bold
If the multiFont property is not true then the preceding lines set the entire field to bold.TAIL
es +TXT
/data
Applies to bitmaps, button, fields, datasheets, groups, movies, picklists, shapes, the text tool (global painting)
MOCELL10>LST
MOCELL10
MultiFont Propertyerty
TextColor Propertyerty
TextFont Propertyerty
TextHeight Propertyerty
TextSize Propertyerty
TextStyle Propertyerty ADDD
GINFO
Width PropertyPROP
popupnum
146bkgd
data
Width PropertyTAIL
+TX+TXT
For all objects:
set the width of <object | {card | cd} window>
to <number>
For dataSheets and pickLists and dataSheets:
set the width of <col[umn] <number1>
[to <number2>]> of <dataSheet |
pickList| dataSheet> to <number>ADDD
E+TXT
The width property determines the width in pixels of an object or window. When the width of an object is changed, its center point remains in the same position.
For dataSheets and pickLists and dataSheets, the width property additionally defines the width of one or more columns of the object. The default width for columns is 50 for pickLists; 100 for dataSheets. Setting the colWidth property also sets the column width property for all columns of the object.
Notes:
The width property can also be changed by manually dragging an object's corner.
If the width of a button or field is changed to a value of less than 1, then the object is hidden, but the visible property is not affected.
A dataSheet or pickList or dataSheet column with a width of 0 is invisible. A dataSheet column with a width of 0 cannot be edited in Browse mode.
The width of a window is read-only from within a script
you cannot set a window's width.TAIL
E+TXT
Changing the width of a shape can have interesting effects for animation. Go to a blank card and create a filled oval shape named
test". Now, create a button with the following script:
on mouseUp
repeat with i = 1 to 200
set the width of shp "test" to i
end repeat
end mouseUp
Return to Browse mode and click on the button.TAIL
PURE+TXT
/data
Applies to all objects, backgrounds, cards, card windows, message box, toolbar
PURE>LST
MOCELL10
ColWidth Propertyerty
Rectangle Propertyerty
Location (Loc) Property
Height Propertyerty
6INFO
Unlock Screen CommandPROP
popupnum
104bkgd
data
Unlock Screen CommandTAIL
+TX+TXT
unlock screen [with visual effect
<effectname> [on the rect of <object>]]ADDD
URE+TXT
The unlock screen command removes the screen lock and allows the screen to be updated. (Lock screen suspends updating of the screen display. ) Unlock Screen is functionally identical to setting the lockScreen property to false.
The <effectname> option causes updates to the screen since the last lock screen command was issued to be drawn using the specified visual effect. The optional specification of rect allows the visual effect to be localized to the rectangle specified:
unlock screen with visual effect dissolve in
200 msecs on the rect of shp 1TAIL
PURE+TXT
The following example, when added to the script of an object, unlocks a screen that has been locked with repeated executions of the lock screen command.
on mouseUp
repeat until the lockScreen is false
unlock screen
end repeat
end mouseUp
PURE>LST
MOCELL10
LockMessages Propertyerty
Lock Messages Commandndnd
Unlock Messages Commandmand
Visual Effect Commandand
LockScreen Propertyerty
Lock Screen Commandndnd
FullScreen PropertyPROP
popupnum
48bkgd
data
FullScreen PropertyTAIL
+T+TXT
For global setting:
set the fullScreen to <boolean>
For stacks:
set the fullScreen of <stack> to <boolean>ADDD
PURE+TXT
The fullScreen property determines whether Oracle Media Objects is displayed in a window or takes over the entire screen. When fullScreen is set to true there is no title bar, menu bar, or Message Box displayed.
Similarly for stacks, if fullScreen is true, then the current stack will take over the entire screen. If fullScreen is false, then the current stack is displayed in a window. If your stack is designed to run in a window, then set fullScreen to false; if your stack is designed to use the entire screen, then set fullScreen to true.
When you set the fullScreen of a stack to true, the application's fullScreen is automatically set to true. If you then turn fullScreen off globally, the stack's fullScreen remains true.
To return to normal view: press Ctrl-M (Command-M on the Macintosh) to reveal the menu bar, then deselect the "Full Screen" option from the "Navigation" menu.
Notes:
The global fullScreen property can be set to true or false by selecting or deselecting the "Full Screen" option from the "Navigation" menu.TAIL
PURE+TXT
Create a button with the following script:
on mouseUp
get the fullScreen
if it = false then
set the fullScreen to true
end if
wait 3 seconds
set the fullScreen to false
end mouseUpTAIL
E+TXT
/data
Applies to card windows (global), stacks
URE>LST
MOCELL10
There are no related topics
INFO
Ticks FunctionPROP
popupnum
62bkgd
data
Ticks FunctionTAIL
+T+TXT
the ticks
ticks()ADDD
The tick+TXT
The ticks function returns a measure of time in 1/60s of a second, since the last system startup.TAIL
Create a+TXT
Create a button called "Ticks" and place the following handler into its script:
on mouseDown
put the ticks into starticks
repeat until the mouse is up
end repeat
put the ticks into endticks
put endticks - starticks into totalticks
put "You held the mouse down for"
&& totalticks/60 && "seconds"
end mouseDown
Now click and hold down the mouse for a few seconds. When you release the mouse, a dialog appears telling you how long you held the mouse down.TAIL
LL10>LST
MOCELL10
Milliseconds (Msecs) Function
Seconds Functionecs) Fun
Wait Commandmand
!INFO
Time FunctionPROP
popupnum
63bkgd
data
Time FunctionTAIL
+T+TXT
the [short | abbreviated | long] time
time()ADDD
URE+TXT
The time function returns the current time. The following lists the two different formats for the time function.
Form: the time, the short time, the abbreviated time
Format: 1:21 PM
Form: the long time
Format: 1:21:17 PM
Notes:
The time() format cannot be used with an adjective.
The time string returned by the time function can be in either 24-hour format (e.g., 13:21) or AM/PM format, as displayed above depending on the time format set in your machine's control panel.
You must restart Oracle Media Objects after changing control panel settings.TAIL
PURE+TXT
You can use the time function to implement a clock display on a card. Create a new field named
Clock". Put the following handler into the script of the card that contain the
Clock" field:
on idle
put the time into fld "Clock"
end idleTAIL
PURE>LST
MOCELL10
There are no related topics
PINFO
Write To File CommandPROP
popupnum
108bkgd
data
Write To File CommandTAIL
+TX+TXT
write <text> to file <filename>ADDD
URE+TXT
The write to file command writes text to a text file. The first write to file command executed after a file has been opened replaces that file's contents. Subsequent write to file commands append text to the file's contents. The write to file command must be preceded by an open file command and followed by a close file command.
The <filename> must supply the name of the text file. The path must also be specified unless the file is located in the same directory as Oracle Media Objects.TAIL
PURE+TXT
Create a button with the following script:
on mouseUp
put "c:¥temp¥junk.txt" into test
--Use this line for Windows
put "c:temp:junk.txt" into test
--Use this line for the Macintosh
open file test
write "Hello, world" & return to file test
write "All Done" to file test
close file test
end mouseUp
If the file test does not exist, Oracle Media Objects creates it. If the file does exist, the write to file command overwrites its contents.TAIL
RE>LST
MOCELL10
Close File Commanded topics
Open File Command
Read From File Command
OINFO
WordWrap PropertyPROP
popupnum
150bkgd
data
WordWrap PropertyTAIL
+TX+TXT
set the wordWrap of <object> to <boolean>ADDD
The word+TXT
The wordWrap property determines whether the value in a field, cell of a dataSheet, or row of a pickList or dataSheet is "wrapped" onto multiple lines so that the full text is visible. If wordWrap is true, the value is automatically wrapped to the next line at the last character that fits on the current line. If wordWrap is false, the value is displayed on a single line and some portions may be invisible. While wordWrap is false, carriage returns will still move to the next row, although carriage returns are not allowed in dataSheet cells.
The default wordWrap value is true.TAIL
e a+TXT
Create a field called "test" and type the following text into it:
"An example of a sentence that spans more than one line in a field."
Now resize the field such that the sentence spans more than one line. Create a button called "Wordwrap" and place the following handler into its script:
on mouseUp
set the wordWrap of fld "test" to
(not the wordWrap of fld "test")
end mouseUp
Click on the button and notice how the wordwrap of the sentence in the field changes.TAIL
Applies +TXT
/data
Applies to datasheets,
LL10>LST
MOCELL10
There are no related topics
!INFO
MatchedCols FunctionPROP
popupnum
26bkgd
data
MatchedCols FunctionTAIL
+T+TXT
the matchedCols of <dataSheet>
where "condition"ADDD
The matc+TXT
The matchedCols function is a query function that returns a comma-delimited list of numbers that correspond to the columns of a dataSheet that satisfy the given constraints. The constraints are specified using a string expression. You can use several constraints joined by logical operators. Each constraint must use the following format:
[not] <row> [= | > | < | etc.] valueTAIL
+TXT
You can use the matchedCols function to find matching data with spaces in it. For example,
the matchedCols of dataSheet 1 where
"row 1 = " & QUOTE &
Hello World" & QUOTE
matches a cell containing Hello World.
put the matchedCols of datasheet
EmployeeSalaries" where
row 2 > Smith and row 5 > 32000"
into selectedColVar
Row 2 will be searched for values that are greater than Smith and row 5 will be searched for values greater than 32000. The resulting string of matching column numbers will be put into the variable selectedColVar.
Applies +TXT
/data
Applies to datasheets
CELL10>LST
MOCELL10
MatchedRows FunctiontionADDD
DoMenu MessagePROP
popupnum
11bkgd
data
DoMenu MessageTAIL
+T+TXT
on doMenu [<menuItem> [,<menuName>]]
end doMenuADDD
URE+TXT
Oracle Media Objects generates the doMenu message whenever the user selects an item from a menu. Every doMenu handler must contain a menu command so that the doMenu message continues along the message hierarchy until it reaches Oracle Media Objects and is executed.
The optional <menuItem> parameter identifies the name of the item that was selected, and the optional <menuName> parameter identifies the name of the menu from which the item was selected.
Notes:
It is extremely important that you remember to include pass doMenu in any doMenu handler. Otherwise, you may find that menu selections have no effect, and it will be very difficult to edit the doMenu handler that caused the problem! If this situation arises, issue the edit script command in the Message Box to edit the script containing the doMenu handler.TAIL
URE+TXT
Add the following handler to the script of a card. This handler displays a dialog box that displays the name of the chosen command whenever the user selects an item from a menu.
on doMenu the_item, the_menu
answer "You selected the menu item" &&
quote & the_item & quote && "of the"
&& quote & the_menu & quote && "menu"
with "OK"
pass doMenu
end doMenu
on doMenu the_item, the_menu
answer "You selected the menu item"
&& quote & the_item & quote &&
"of the" && quote & the_menu &
quote && "menu" with "OK"
pass doMenu
end doMenuTAIL
PURE+TXT
/data
Sent to the current cardTAIL
PURE>LST
MOCELL10
Clear Commandand
Copy Command as <filena
Copy Card Commandfilena
Create Card Commanddmman
Cut Commandmand
Paste Card Commandd
4INFO
Units PropertyPROP
popupnum
141bkgd
data
Units PropertyTAIL
+TX+TXT
For paths and timers:
set the units of <path | timer> to
<milliseconds | seconds | ticks>
For movies:
set the units of <movie> to
<milliseconds | seconds | ticks |
asComposed>
For sounds:
set the units of <sound> to <milliseconds |
seconds | ticks | samples>ADDD
PURE+TXT
The units property determines the units of time used by the specified object. You can specify that units should be counted in either seconds, milliseconds, or ticks (one-sixtieths of a second). The default setting of the units property is ticks.
For movies, a units setting of asComposed uses the units defined in the movie description. Use the unitRate property to figure out the setting.
For sounds, a units setting of samples uses the sampling rate at which the sound was recorded; samples is synonymous with asComposed.
Notes:
For timers, the setting of this property is overriden if you start the timer in single fire mode (by specifying the expire option on the start command, and specifying a value for units).TAIL
PURE+TXT
The following handler uses the units property in the script of a card to specify that units for the TimeAttack timer should be counted in seconds and that the timer will count 30 seconds before going off.
on openCard
start timer "TimeAttack" expire in 30 seconds
end openCardTAIL
PURE+TXT
/data
Applies to movies, paths, sounds, timers
URE>LST
MOCELL10
Start Commandmand
UnitRate Propertyerty
"INFO
TimerExpired MessagePROP
popupnum
47bkgd
data
TimerExpired MessageTAIL
+T+TXT
on timerExpired
end timerExpiredADDD
E+TXT
When a timer is started in single fire mode, the timerExpired message is sent to the timer when the timer goes off.
The timerExpired message fires synchronously and never interrupts another script.TAIL
PURE+TXT
Create a timer
Test" and place the following handler in the script so that when the timer expires, your computer beeps:
on timerExpired
beep
end timerExpired
Now type the following into the Message Box:
start timer "Test" expire in 10 secondsTAIL
E+TXT
/data
Applies to timers
PURE>LST
MOCELL10
Start Commandmand
Stop Commandand
Messages Propertyertyy
UnitRate Propertyerty
Units Propertyerty
ScaleToFit PropertyPROP
popupnum
103bkgd
data
ScaleToFit PropertyTAIL
+TX+TXT
set the scaleToFit of <bitmap> to <boolean>ADDD
PURE+TXT
The scaleToFit property controls the scaling of an image in a bitmap. If the scaleToFit property is set to true, then the image in the bitmap scales to the size and aspect ratio of the bitmap size.
If scaleToFit is set to false, the image is displayed at full size and aspect ratio and is cropped to fit inside the bitmap.
Notes:
ScaleToFit affects only the display of the bitmap on the screen; it does not change the bitmap as it is stored in the stack file or database.
ScaleToFit affects only the display of the bitmap on the screen; it does not change the bitmap as it is stored in the stack file or database.TAIL
Create a bitmap and name it
test". Open the bitmap's Info dialog box and click on Import Graphic. Select a graphic smaller than the bitmap and click on OK. The graphic appears in the bitmap. Resize the bitmap to crop the object.
set the scaleToFit of bmp "test" to true
The graphic scales to the bitmap. Now type this line in the Message Box and press Enter:
set the scaleToFit of bmp "test" to false
The graphic appears at full size and is cropped to fit inside the bitmap.TAIL
PURE+TXT
/data
Applies to bitmaps
PURE>LST
MOCELL10
AutoResize Propertyerty
EINFO
Wait CommandPROP
popupnum
107bkgd
data
Wait CommandTAIL
wait for <number>
[ticks | seconds | milliseconds ]
wait {while | until} <condition>ADDD
PURE+TXT
The wait command causes Oracle Media Objects to pause before executing the rest of the handler, either for a specified length of time, until a specified condition becomes true, or while a specified condition exists.
The condition must supply a true or false value and is typically a logical or relational expression.
Notes:
If a unit of time is not specified, Oracle Media Objects uses ticks (1/60 second) which can also be specified explicitly.TAIL
PURE+TXT
Create a field named
number" and a button named
WaitTest". Put the following script into
WaitTest".
on mouseDown
repeat with i = 1 to 25
put i into field "number"
wait while the mouse is up
end repeat
end mouseDown
Return to Browse mode and click and hold the mouse button down on top of the button. If you release the mouse button before the counter gets to 25, it waits until you press the mouse button down again to continue the count.TAIL
PURE>LST
MOCELL10
There are no related topics
& OperatorSCRP
on openCard
global gMediaTalkReference
set the cursor to watch
if gMediaTalkReference is "Media Talk Reference" then
set the globalRowNum of this stack to 1
put "Alphabetical" into bg fld "category"
put card datasheet "Alpha" of card "data" into bg lst "list" of bg "topic background"
set the alpha of this stack to true
dehilite bg lst "list"
dehilite bg lst "category"
hilite row 1 of bg lst "category" of bg "topic background"
set the vertical scrollline of bg lst "list" to 1
hilite row 1 of bg lst "list"
else if gMediaTalkReference is "Operators" then
set the globalRowNum of this stack to 1
put "Operators" into bg fld "category"
put card fld "operators" of card "data" into bg lst "list" of bg "topic background"
set the alpha of this stack to false
dehilite bg lst "list"
dehilite bg lst "category"
hilite row 6 of bg lst "category"
set the vertical scrollline of bg lst "list" to 1
hilite row 1 of bg lst "list"
end if
set the cursor to arrow
put empty into gMediaTalkReference
end openCard
popupnum
1bkgd
data
& OperatorTAIL
<expression1> & <expression2>
<expression1> && <expression2>ADDD
The ampersand (&) operator is a text concatenation symbol; it joins the expressions to its left and right to form a single expression.
When the ampersand is used singly, the expressions are concatenated without any intervening characters. When a double ampersand (&&) is used, the expressions are joined with a single intervening space.
Notes:
For readability purposes, you can optionally delimit a single ampersand or double ampersands with spaces. If you place a space between two ampersands, however, the error message "no operand found" is returned because Oracle Media Objects evaluates each ampersand separately, not as a double ampersand.TAIL
The following examples show the results obtained by different uses of the ampersand operator:
Example: "Good" & "Morning"
Result: GoodMorning
Example: "Good" && "Morning"
Result: Good Morning
Example: "January" && 3+4
Result: January 7
Example: "The visible property is" &&
thevisible of fld 1 & "."
Result: The visible property is true.
Example: 3 & 4*2
Result: 38
Example: (3 & 4)*2
Result: 68
Example: (3 && 4)*2
Result: error-number expected
%data
40TAIL
MOCELL10
There are no related topics
iINFO
CloseCard MessagePROP
popupnum
4bkgd
data
CloseCard MessageTAIL
Sent to+TXT
on closeCard
end closeCardADDD
PURE+TXT
Oracle Media Objects sends the closeCard message to the current card just before the user leaves the current card. This message can be used to carry out certain activities when leaving a card.TAIL
PURE+TXT
The following handler in the script of the current card
cleans up" the fields on a particular card once the user leaves the card:
on closeCard
repeat with i = 1 to the number of flds of
this card
put empty into fld i
end repeat
end closeCardTAIL
PURE+TXT
/data
Sent to the current cardTAIL
PURE>LST
MOCELL10
CloseBackground Messagesage
LockMessages Propertyerty
OpenBackground Messagesage
CloseStack Messagesage
OpenCard Messagesage
OpenStack Messagesage
ZINFO
Character Text ChunkPROP
popupnum
2bkgd
data
Character Text ChunkTAIL
++TXT
char[acter] <integer1> [to <integer2>] {of | in}
<expression>
the <ordinal> char[acter] {of | in} <expression>ADDD
The char+TXT
The character chunk yields a substring of an expression by extracting a specified character or range of characters from the expression.
The expression can be any valid text string, including a container reference, a property reference, a function that returns text, a literal string, or a combination of these.
Notes:
You can specify chunks of chunks, as in the following example:
char 1 of word 1 of the short name of button 4
You can also specify ranges of chunks, as in the following example:
char 5 to 20 of field "LAST NAME"
You can use text chunk expressions with tabular chunk expressions by enclosing the tabular chunk expression in parentheses, as in the following example:
put char 1 to 5 of (col 2 of pickList 3)
Attention: You can use a combination of text and tabular chunk expressions to retrieve values, but not to insert values into containers.
Oracle Media Objects evaluates the following expressions as shown below:
Expression: char 1 of "hello"
Result: h
Expression: char 2 to 3 in "goodbye"
Result: oo
Expression: character 2 of character 2 to 3 of "hello"
Result: l
Expression: char 1 to 3 of word 4 of "How are you today?"
Result: tod
Expression: char 1 to 5 of my_variable
Result: Oracl
Expression: the last character in card field 1
Result: 6
Expression: char 1 of the name of cd fld 1
Result: c TAIL
oll+TXT
The following examples demonstrate various chunk expressions and the values they return. For the examples, assume these conditions:
put "Oracle Media Objects" into my_variable
put "The number 176" into field 1
OCELL10>LST
MOCELL10
Item Text Chunkhunk
Line Text Chunkhunk
Word Text Chunkhunk
Repeat WithPROP
popupnum
15bkgd
data
Repeat WithTAIL
T+TXT
repeat with <variable> = [<startNumber>
to <endNumber>] | [<start> down to <end>]
end repeatADDD
The repeat with control statement executes part of a script <endNumber>-<startNumber>+1 times, starting with <variable>=<startNumber> and adding 1 to <variable> for each execution of the loop until <variable>=<endNumber> .
The loop can also be exited via the exit repeat, exit messageName, exit to top, or pass messageName command.
The repeat...down to option decrements the variable after each pass through the loop.TAIL
PURE+TXT
The following handler, when issued from within a script, deletes the contents of all text fields located on a card:
repeat with x=1 to the number of fields
put empty into field x
end repeatTAIL
PURE>LST
MOCELL10
Next Repeat Control Statementment
Exit Repeat Control Stat@
ement
Repeat Control Statement
Repeat Forever
Repeat Until
Repeat While
1INFO
Unhilite CommandPROP
popupnum
102bkgd
data
Unhilite CommandTAIL
+TX+TXT
unhilite <button | shape | bitmap |
[row <number> [to <number2>] of]
pickList | dataSheet>
bitmap |ADDD
RE+TXT
The unhilite command sets the hilite property of a button, dataSheet, shape object, bitmap, or pickList to false. You can also use the unhilite command to set the hilite property of specific pickList or dataSheet rows to false.
Notes:
Unhilite is synonymous with dehilite.TAIL
PURE+TXT
Create two buttons and name them "b1" and "b2". Set the buttons' autoHilite property to false and their style property to gray. Add the following handler to "b1":
on mouseUp
hilite me
unhilite button "b2"
end mouseUp
Add the following handler to "b2":
on mouseUp
hilite me
unhilite button "b1"
end mouseUp
When the user clicks a button, it is highlighted and the other button is unhighlighted.
You can use the unhilite command to clear all selections from a pickList. Create a new pickList named
Answers" and give it some data by entering the following line into the Message Box and pressing Enter:
put "A" & return & "B" & return & "C" &
return & "D" into lst "Answers"
Create a new button named
Clear Answers" and place the following handler into its script:
on mouseUp
unhilite lst "Answers"
end mouseUp
Switch to Browse mode and select rows of the pickList. To clear your selections, click on the
Clear Answers" button.
/data
Applies to bitmaps,
PURE>LST
MOCELL10
Hilite Commandyperty
Hilite Propertydnd
AutoHilite Propertyerty
<INFO
AutoTab PropertyPROP
popupnum
7bkgd
data
AutoTab PropertyTAIL
++TXT
set the autoTab of <field> to <boolean>ADDD
The auto+TXT
The autoTab property enables the automatic tabbing feature. When the autoTab property is true, pressing the Return key on the Macintosh or the Enter key on Windows while in the last line of a field moves the insertion point to the next field on that card. When autoTab is false, pressing the Enter key (Windows) or the Return key (Macintosh) on the last line inserts a carriage return.
AutoTab follows the numeric sequence of the fields. Oracle Media Objects navigates from field to field on a card in the following order: if the current field is a field, the insertion point moves to the next-highest numbered field. If no other fields exist, the insertion point moves to the lowest-numbered background field. If you are currently in a background field, the insertion point moves to the next-highest numbered background field. If no more background fields exist, the insertion point goes to the lowest numbered field.
The default value of autoTab is false.
Notes:
Hidden fields (those hidden from view using the hide command), locked fields, and dataSheets are not in the tabbing order.TAIL
the +TXT
Try the following example,which illustrates the autoTab property.
1. Create two fields named
test1"
test2".
2. Resize the two fields so each can display only two lines of text.
3. Open the Info dialog box of field
test1" and select the autoTab option. Click on OK to close the dialog box.
4. Select the Browse tool and click on field
test1".
5. Press the Enter key twice for Windows. For the Macintosh, press the Return key twice.
The cursor moves to field
test2".
6. With the cursor in field
test2," press the Enter key or Return Key several times.
The cursor remains in field
test2".
ies +TXT
/data
Applies to fields
MOCELL10>LST
MOCELL10
TabKey Messagesage
Hide {screen element} C@
ommand
,INFO
Type CommandPROP
popupnum
100bkgd
data
Type CommandTAIL
type <text> [with shiftKey] | [with OptionKey] |
[with commandKey]ADDD
The type+TXT
The type command simulates typing at the keyboard by typing characters at the insertion point.
When using the type command from a script, choose the text tool before selecting an insertion point.
If the [with commandKey] option is used, no text is typed, but rather the equivalent keyboard shortcut is performed.
Notes:
The text insertion point is placed by clicking in an unlocked field or dataSheet with the Browse tool or by sending the tabKey message.
Paint text can be typed at the text insertion point on a card or background by selecting the Paint Text tool before using the type commandTAIL
Go to a +TXT
Go to a blank card and create a button with the following script:
on mouseUp
choose text tool
click at 100,100
type "Oracle Media Objects"
choose browse tool
end mouseUp
Return to Browse mode and click on the button.TAIL
L10>LST
MOCELL10
There are no related topics
wINFO
Play File CommandPROP
popupnum
69bkgd
data
Play File CommandTAIL
+T+TXT
play file <sound_filename> [blocking]ADDD
The play+TXT
The play file command is actually a special instance of the play command. In this usage, play plays the specified sound file, directly from the operating system, through the computer's speaker. To play sound continuously while navigating between cards on different backgrounds, you must use the play file command.
On the PC, the <filename> parameter must be the full pathname of a .WAV sound file. For example: C:¥sounds¥wav¥bell.wav>.
Replace the components of the full pathname example with the names of the directories in which your sound file is stored, and the specific name of the .WAV sound file.
On the Macintosh, the <filename> parameter must be the full pathname of an .AIFF sound file. For example:
<MacintoshHD>:sounds:aiff:<Sound file.aiff>.
Replace the components of the full pathname example with the name of your Macintosh hard disk, each folder name, and the specific name of the .aiff sound file.
If the blocking option is not specified, the sound is played asynchronously; the system does not wait for the sound to finish playing before returning control to the script. If blocking is specified, the sound must finish playing before control is returned to the script. The asynchronous playback is the default.
If the sound played successfully, the value true is returned to it. If the sound did not play successfully, for example because the specified <filename> was not in the correct format, false is returned to it.
For sound files to be played on a PC, the machine must be equipped with a sound card.
Notes:
On Windows, if a sound object is playing a sound when the play file command is executed, play file fails. This is due to the fact that on Windows, only one sound can be played at a time.
If you want to play sound continuously while navigating between cards on the same background, use the play file command with no option specified as an alternative to placing a sound object on the background.
If you are playing sound from a file while navigating to a different card, your machine will be trying to access both the audio data and the stack data simultaneously. If your storage device is slow, or the card to which you are navigating contains a lot of data, the sound is likely to stutter or cut out until the new card is read completely into memory. There are a few possible actions you can take to avoid this: never play sounds while moving between cards; where possible, replace navigation in your application with context changes on the same card; import your audio files instead of linking to them (this is only possible if you are using sound objects); modify the bufferSize property of your sound object(s). Note that the last two actions are not options if you are navigating between different backgrounds.TAIL
l+TXT
The following button handler lets the user choose a sound from the operating system, then plays the chosen sound.
on mouseUp
ask file "Choose a sound to play:" of
type "WAV"
if it is not empty then
put it into the_sound
play file the_sound
end if
end mouseUpTAIL
ELL10>LST
MOCELL10
Play File Command
Popup CommandPROP
popupnum
71bkgd
data
Popup CommandTAIL
+T+TXT
popup <card>
[titled <string>]
[with <expr>]
[as {dialog | moveabledialog}]
[at <x,y>]ADDD
The popu+TXT
The popup command displays the indicated <card> in a new modal dialog window that overlays the card that was previously displayed. The new window becomes the focus of all user and script activity: when the user navigates to another card, that card is also displayed in the new window. The new window is dismissed by issuing the dismiss command.
The dimensions of the new window are determined by the size of the background of <card>.
The titled <string> clause specifies the text to appear in the window title bar. The title is only visible on moveable dialog windows.
The with <expr> clause specifies the default return value from the dialog card if the card is dismissed by pressing the Escape key or using the system close box, or if no return value is specified by the dismiss command. The return value is stored in the local variable it. <with> can also be used with the dismiss command.
The as clause specifies the window type, which can be moveabledialog (the default) or dialog.
The at clause specifies the top-left coordinates of the popup card's initial position. By default, the popup card is centered on top of the current card window. If you specify coordinates that place the card off of the screen, Oracle Media Objects will override your coordinates and place the card entirely on the screen, because it is not possible to pop up a dialog window at an off-screen position.
The previous window, or parent window, is no longer active until dismiss is issued. All messages, including idle, are sent to the dialog, or child window. A child window can issue popup as well, to a maximum of 10 simultaneously displayed windows.
The handler that issues the popup command pauses in its execution until a dismiss command has been issued.
When a popup card is displayed, the toolbar, script windows, menus, and message box are all unavailable until dismiss has been issued. The cursor displays as a standard dialog pointer.
The same card cannot be displayed in two different windows at once.
Notes:
The popup command is useful for displaying custom dialog boxes.
Usually, <card> will be a different size from other cards in the stack and thus requires its own background.TAIL
opup th+TXT
popup the next card of this stack
popup card id 1007 as moveabledialog
popup card "Dialog 1" of stack "Dialogs"TAIL
Applies +TXT
/data
Applies to cards
MOCELL10>LST
MOCELL10
Dismiss Commandmand
WindowType Propertyerty
eINFO
ClickLoc FunctionPROP
popupnum
7bkgd
data
ClickLoc FunctionTAIL
++TXT
the clickLoc
clickLoc()ADDD
PURE+TXT
The clickLoc function returns the point on the window where the cursor was located the last time the mouse was clicked.
Oracle Media Objects returns the location in x and y screen coordinates representing the horizontal offset followed by the vertical offset. The locations are measured in pixels from the top left corner of the card.
Notes:
ClickLoc is determined as the point where the mouse was clicked just before the present handler began to be executed.TAIL
PURE+TXT
Move the cursor to the upper left corner of the window and click. Type the following in the Message Box and press Enter:
the clickLoc
The following handler selects an entire line from a locked field when the user clicks on the line. It then displays the line in the Message Box:
on mouseUp
set the lockText of me to false
click at the clickLoc
get the selection
put it into clickVar
put "You picked" && quote & clickVar & quote
set the lockText of me to true
end mouseUpTAIL
PURE>LST
MOCELL10
ClickH Functiontion
ClickV Functiontion
Click At Commandd
#INFO
Add Property CommandPROP
popupnum
4bkgd
data
Add Property CommandTAIL
++TXT
add property <property> to <object>ADDD
The add +TXT
The add property command associates a custom property with an object. <property> must be a character string containing no spaces of up to 255 characters in length. The property is created empty.
Once created, a custom property can have a value consisting of any string of up to 255 characters in length.
If a custom or standard property named <property> already exists, add property has no effect.TAIL
To add t+TXT
To add the custom property
vocation" to a bitmap called
my bitmap", type the following in the Message Box and press Enter:
add property vocation to bmp "my bitmap"
After you add a property to an object, you can assign a value to the property using the set command.
You can specify the contents of a variable for <property> using the do command in a statement like the following:
do "add property" && the_property && "to the_object"TAIL
OCELL10>LST
MOCELL10
Remove Property Commandmand
Do Commandeed Command <
Properties Propertyerty
Set Commanded Command
,INFO
Answer CommandPROP
popupnum
8bkgd
data
Answer CommandTAIL
++TXT
answer <question> [with <reply> [or <reply2>
[or <reply3>]]] [at <x,y>]ADDD
answ+TXT
The answer command creates a dialog box that prompts the user to choose from one, two, or three button replies. If you do not specify any button replies, Oracle Media Objects automatically provides an OK reply button. The last button specified is the default reply, and can be selected by clicking on it or by pressing Enter.
The text of the selected button reply is stored in the local variable it. From there it can be manipulated through scripts. The <question> size limit varies by font type and by platform. You can designate the location of the dialog box on the screen by specifying the x and y coordinates of the top-left of the dialog box in relation to the top-left corner of the Oracle Media Objects window.TAIL
Type the+TXT
Type the following lines in the Message Box. After you have answered each question, type it in the Message Box to see the stored value.
answer "Have you found what you're
searching for?" with "No" or "Yes"
answer "Continue Searching?" with "OK"
or "Cancel" at 50,50
Now, create a button and name it "Test". Add the following handler to the button's script:
on mouseUp
answer "Pick a number" with "One" or
"Two" or "Three"
if it is "One" then answer "You picked One."
else if it is "Two" then answer
"You picked Two."
else if it is "Three" then answer
"You picked Three."
end mouseUpTAIL
Applies +TXT
/data
Applies to global
MOCELL10>LST
MOCELL10
Ask Commandd Command
Pick Commandmand
Popup Commandmand
It Special ContainerinerADDD
>INFO
BackColor PropertyPROP
popupnum
8bkgd
data
BackColor PropertyTAIL
++TXT
set the backColor of [<part> of]
<object> to <color>ADDD
The back+TXT
The backColor property sets the background color of an object. The backColor is displayed only when certain object style values are set. For example, if a shape's or field's style is set to opaque, the backColor is displayed, but if its style is set to transparent, the backColor is not displayed.
For shapes, backColor sets the fill color of rectanglestyle
shapes, and the first color used for patterns.
The optional [<part> of] can be replaced by the colLabels part of a pickList or dataSheet, or by the label part of a bitmap or field.
The backColor property color values range from 0 to 255 for a named color. For a list of named colors, see the entry for the textColor property.
When you select an object, Oracle Media Objects displays the backColor in the toolbar palette labeled "B".TAIL
Create a+TXT
Create a shape object and name it
test". Then type the following in the Message Box and press Enter:
put the backColor of shape "test"
The line above returns the number of the backColor.
You can also use the set command to modify the background color. Type the following in the Message Box and press Enter:
set the backColor of shape "test" to 229
set the backColor of shape "test" to greenTAIL
plies +TXT
/data
Applies to bitmaps, buttons, datasheets, fields, groups, picklists, shapes
0>LST
MOCELL10
AutoHilite Propertyy
ForeColor Property
Hilite Property
InkColor Property
oINFO
CloseStack MessagePROP
popupnum
7bkgd
data
CloseStack MessageTAIL
++TXT
on closeStack
end closeStackADDD
PURE+TXT
Oracle Media Objects sends the closeStack message to the current card just before the user exits the current stack. This message can be used to carry out "housekeeping" activities when exiting a stack.TAIL
RE+TXT
When placed in the script of a stack, the following handler empties the field "status" on every card just before the stack is closed. The fields will be empty when the stack is reopened.
on closeStack
repeat with i = 1 to the number of cards in
this stack
put empty into fld "status" of card i
end repeat
end closeStackTAIL
PURE+TXT
/data
Sent to the current cardTAIL
PURE>LST
MOCELL10
CloseBackground Messagesage
LockMessages Propertyerty
OpenBackground Messagesage
CloseCard Messagesage
OpenCard Messagesage
OpenStack Messagesage
Create CommandPROP
popupnum
29bkgd
data
Create CommandTAIL
+T+TXT
create [<layer>] <object> [of <layer>
{id <id> | <number> | <name>}]
[of stack <name>]ADDD
The create command dynamically creates an object of the specified type. The object is created hidden
that is, the visible property of the created object is automatically set to false, so that the object can be positioned before being shown. The new object's position is in the upper left corner of the card.
Unlike the New command on the Object menu, the create command does not switch Oracle Media Objects into Edit mode.
The reference of the created object is returned in it.TAIL
PURE+TXT
The following button script creates a new button on the current card, names the new button
hello", moves the new button to another location and finally, makes the new button visible:
on mouseUp
create button
put it into buttonRef
set the name of buttonRef to "hello"
set the location of buttonRef to 100,50
show buttonRef
end mouseUpTAIL
URE+TXT
/data
Applies to all objects
PURE>LST
MOCELL10
Delete {row/col} Command
Reference Propertyerty
CurveType PropertyPROP
popupnum
32bkgd
data
CurveType PropertyTAIL
+T+TXT
set the curveType [of leg <number>] of <path>
to <straight | circular | bezier>ADDD
The curv+TXT
The curveType property determines the geometric motion of an object along a leg of a path. Motion along a leg can be set to straight, to circular, or to follow a Bezier curve by supplying the keywords straight, circular, and bezier, respectively. For the bezier curve type, the controlPoint property is used to generate the actual curve. For circular curves, the centerPoint property is used to generate the actual curve.
Notes:
You can specify a path only, rather than the specific leg of that path, when you set the curveType property. The result sets the curveType of leg 1 only even if there is more than one leg in the path.TAIL
s +TXT
/data
Applies to paths, legs of a path
MOCELL10>LST
MOCELL10
ControlPoint Propertyrty
CenterPoint PropertyrtyADDD
Dehilite CommandPROP
popupnum
33bkgd
data
Dehilite CommandTAIL
+T+TXT
dehilite <button> | <shape> | bitmap |
[row <number> of] {<pickList> | <dataSheet>}
bitmap |ADDD
The dehi+TXT
The dehilite command sets the hilite property of a button, shape, dataSheet, or pickList to false. You can also use the dehilite command to set the hilite property of specific pickList or dataSheet rows to false.
Notes:
Dehilite is synonymous with unhilite.TAIL
Create t+TXT
Create two buttons and name them "b1"and "b2". Set the buttons' autoHilite property to false and their style property to gray. Add the following handler to "b1":
on mouseUp
hilite me
dehilite button "b2"
end mouseUp
Add the following handler to "b2":
on mouseUp
hilite me
dehilite button "b1"
end mouseUp
Whenever the user clicks on one button, it is highlighted and the other button is unhighlighted.TAIL
Applies +TXT
/data
Applies to buttons, shapes, datasheets, picklists
MOCELL10>LST
MOCELL10
AutoHilite Propertyerty
Hilite Commandndnd
Hilite Propertyperty
Unhilite Commandmand
Dismiss CommandPROP
popupnum
41bkgd
data
Dismiss CommandTAIL
+T+TXT
dismiss [with <return_value>]ADDD
PURE+TXT
The dismiss command dismisses a popup window that has been displayed using the popup command. One dismiss command is required for each popup command issued.
The dismiss command can carry a single parameter, which returns a value in it to the handler from which popup was issued.
The dismiss command has no effect on a window not created with the popup command.
Notes:
The dismiss command cannot be used within an openCard handler.
If you popup a card that is in another stack, the popped-up card will receive a closeStack message when it is dismissed.TAIL
PURE+TXT
The following button handler could be added to an OK button on a card that serves as a dialog box. When clicked, the button dismisses the dialog box, returning a value it obtains from a text field (where the user might have typed text in response to a prompt, such as "Enter a new name for this card:").
on mouseUp
dismiss with field "Response"
end mouseUpTAIL
URE+TXT
/data
Applies to global
PURE>LST
MOCELL10
Popup Commandmand
Do CommandPROP
popupnum
43bkgd
data
Do CommandTAIL
+T+TXT
do <expression>
do "<command>"ADDD
URE+TXT
The do command causes Oracle Media Objects to evaluate the <expression> and then execute the resulting string as an Oracle Media Talk command. The do command is useful for building commands whose operands are determined dynamically. <expression> is any valid Oracle Media Talk expression, handler name, container, or chunk expression, and <command> is any valid Oracle Media Talk command.
Please note that the do command will be removed from the product in the future.
Notes:
Do treats one specific line as a script and can be used to start a program, execute a command, or carry out any single line of Oracle Media Objects operations.TAIL
PURE+TXT
Create a field and name it
test". Return to the Browse mode and type the following lines in the field:
choose text tool
beep 3
put 4 + 5 into msg
Next, type the following lines in the Message Box and press Enter after each:
do line 1 of field "test"
do line 2 of field "test"
do line 3 of field "test"
You can use the do command to create navigation functionality. Create four buttons named
First",
Last",
Next", and
Previous". Put the following handler into the card script:
on mouseUp
if the class name of the target is "button" then
do "go" && the short name of the
target && "cd"
else
pass mouseUp
end if
end mouseUpTAIL
PURE>LST
MOCELL10
There are no related topics
Duration PropertyPROP
popupnum
36bkgd
data
Duration PropertyTAIL
+T+TXT
For movies and sounds:
the duration of <movie | sound>
For paths:
set the duration of [leg <number> of]
<path> to <integer>ADDD
E+TXT
For movies and sounds, the duration property describes the movie or sound length, measured in units. The duration property is read-only for movies and sounds.
For paths, the duration property determines how long the animation will last on a selected path or leg of a path. The duration is measured in the current units setting, and the default is 60 ticks (one second).
You can set the value of the duration property to apply to either an entire path or to each leg of a path. You can specify a different duration for each leg of a path; you must then set the path's playStyle property to useLegTiming to enable the different durations.TAIL
PURE+TXT
Create a field called
Status" and then place the following handler into the script of a movie object.
on idle
prepare movie 1
put the duration of movie 1 into totLength
put ((the playCounter of movie 1)/totLength)
* 100 into percentDone
put percentDone & "% done..." into field status
end idle
Play the movie by typing play mov 1 into the Message Box. The
Status" field displays the running count of the percentage of the movie that has played.
Play the movie by typing play mov 1 into the Message Box. The "Status" field displays the running count of the percentage of the movie that has played.TAIL
PURE+TXT
/data
Applies to movies, paths, legs of paths, sounds
PURE>LST
MOCELL10
PlayDuration Propertyrty
UseLegTiming Propertyrty
PlayStyle Propertyrty
LibraryStack MessagePROP
popupnum
19bkgd
data
LibraryStack MessageTAIL
+T+TXT
on libraryStack
end libraryStackADDD
RE+TXT
The libraryStack message is generated whenever a library stack is made active through the issuance of the library command.
Notes:
A libraryStack handler should verify that the stack in which the handler resides is the intended recipient of the message. If the newly activated library stack does not handle the libraryStack message, the message is passed up the hierarchy and will be sent to other active library stacks until it is handled.TAIL
URE+TXT
Enter the following code into the script of a stack:
on libraryStack
if the name of the target is the name of me
-- library initialization code here
else pass libraryStack
end libraryStackTAIL
PURE+TXT
/data
Sent to the most recently activated
library stackTAIL
PURE>LST
MOCELL10
Release Library Commandmand
Library Command Command
Repeat Control StatementPROP
popupnum
11bkgd
data
Repeat Control StatementTAIL
+T+TXT
repeat for <number> times
end repeatADDD
The repe+TXT
The repeat for control statement causes the block of Oracle Media Talk statements between its first and last lines to execute <number> times, unless an exit, exit to top, exit repeat, or pass statement is encountered.
The next repeat control statement causes the code to jump immediately to the beginning of the repeat loop, incrementing the loop counter.
Notes:
You can exit any loop by pressing Ctrl-(period) on Windows and Command-(period) on the Macintosh.TAIL
The foll+TXT
The following script, when placed in a button, prompts the user to enter five numbers, which are summed and returned:
on mouseUp
put 0 into total
repeat for 5 times
ask "Please enter a number..."
put total + it into total
end repeat
type total
end mouseUpTAIL
LL10>LST
MOCELL10
Exit Repeat Control Statement
Next Repeat Control Statement
Repeat Forever
Repeat Until
Repeat While
Repeat With
Repeat ForeverPROP
popupnum
12bkgd
data
Repeat ForeverTAIL
+T+TXT
repeat forever
end repeatADDD
The repe+TXT
The repeat forever control statement creates an infinite loop. To exit a repeat loop, Oracle Media Objects must execute one of the following commands: exit <messageName>, pass <messageName>, exit to top, or exit repeat.TAIL
The foll+TXT
The following button script continuously adds 1 to an amount in a variable named
total":
on mouseUp
put 0 into total
repeat forever
add 1 to total
put total
end repeat
end mouseUp
To exit press Ctrl-(period) in Windows, Command-(period) on the Macintosh.TAIL
CELL10>LST
MOCELL10
Exit Repeat Control Statement
Next Repeat Control Statement
Repeat Control Statement
Repeat Until
Repeat While
Repeat With
Repeat UntilPROP
popupnum
13bkgd
data
Repeat UntilTAIL
repeat until <condition>
end repeatADDD
The repe+TXT
The repeat until control statement repeats a part of a script until a specific condition is true. The condition must supply a value of true or false.
Notes:
Repeat until <condition> produces the same result as repeat while not <condition>.TAIL
The foll+TXT
The following script continuously asks the user to enter a number to be added to an amount contained within a variable named
total." When the total is greater than 50, the condition of the repeat until statement is met and the remainder of the script is executed after end repeat.
on mouseUp
put 0 into total
repeat until total >50
ask "enter next number"
add it to total
put total
end repeat
end mouseUpTAIL
MOCELL10>LST
MOCELL10
Exit Repeat Control Statement
Next Repeat Control Statement
Repeat Control Statement
Repeat Forever
Repeat While
Repeat With
Entry ChunkPROP
popupnum
4bkgd
data
Entry ChunkTAIL
entry <integer> of <palette>ADDD
PURE+TXT
The entry chunk yields a particular RGB triplet from the entries of the specified palette. You can use the entry chunk to set or retrieve a particular RGB triplet.
The value of <integer> can range from 1 to 256.
Notes:
When setting a palette entry as in the previous example, you must quote the RGB triplet.
If you put a value into an uninitialized entry of a palette, entries between the last initialized entry and the one you are setting will be set to the corresponding Mac system palette color for that entry. For example, if you have five entries in a palette and then try to set entry fifteen, entries six through fourteen will be set to Mac system palette colors six through fourteen.
Remember to follow rules of Macintosh and Windows palettes while developing your application. For the Macintosh, the first entry must be white and the last entry black. For Windows, the first 8 and the last 8 entries must be blank.
You cannot specify ranges with the entry chunk. For example, the following is incorrect:
entry 5 to 20 of palette "Blues"
New entries set using the entry chunk expression are not displayed until the palette has been realized.
put "140, 99, 74" into entry 15 of palette
"Spectrum"
entry 30 of palette "Test"
PURE+TXT
/data
Applies to palettes
PURE>LST
MOCELL10
Realize Commandmand
Show {screen elements} CommandPROP
popupnum
92bkgd
data
Show {screen elements} TAIL
c+TXT
show <screen element> [at <x,y>]ADDD
RE+TXT
The show command displays screen elements, and makes the visible property of a screen element true, thereby bringing that screen element into view.
Possible screen elements are the following:
card window
cursor
menubar
message
rulers
scrollbars
sizeBox
titlebar
toolbar
{background | bkgnd} picture
{card | cd} picture
{horizontal | vertical} scrollbar
The show {cd|bg} picture form of the show command has the same effect as setting the showPict property of the card or background to true.
<x,y> specifies the distance from the upper-left corner of the card window to the center of any <screen element> except menu bars, rulers, card pictures, and background pictures.
Notes:
If the menu bar is hidden and the screen is locked, the show menubar command has no effect. See the lock screen and unlock screen commands and lockScreen property for more information.
Hide cursor commands may be nested. As with the lock screen and unlock screen commands, an equivalent show cursor command is required for each hide cursor command that has been issued.
Showing the sizeBox has no effect in Microsoft Windows.
You cannot show screen elements in the player, only in the development version.TAIL
RE>LST
MOCELL10
Hide {screen element} Commands in the player, only in the development version.
Location (Loc) Property
RulerStyle Property
Visible Property
SnapToGrid PropertyPROP
popupnum
123bkgd
data
SnapToGrid PropertyTAIL
+TX+TXT
set the snapToGrid to <boolean>ADDD
URE+TXT
NOT AVAILABLE IN THE PLAYER
The snapToGrid property determines whether objects and painting on cards and backgrounds are aligned to an invisible grid when created, resized, or moved.
If snapToGrid is set to true, objects that are subsequently created, resized, or moved are automatically aligned to a grid whose size is determined by setting the gridSize and rulerStyle properties.
If snapToGrid is false (the default), objects that are created, resized, or moved can be adjusted to any screen position.TAIL
Create a button and then type the following into the Message Box and press Enter:
set the snapToGrid to true
Try moving the button. Note that it moves in steps (that correspond to the gridSize property). Now type the following into the Message Box and press Enter:
set the snapToGrid to false
Try moving the button again and notice that it moves freely to any location.TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
GridSize Propertyerty
RulerStyle Propertyerty
Style PropertyPROP
popupnum
128bkgd
data
Style PropertyTAIL
+TX+TXT
set the style of <object> to <attribute>ADDD
The styl+TXT
The style property determines the appearance of an object. For some types of objects, the style property can make available or hide object controls, as in the case of field scrollbars or movie controls. Only one style property can be in effect at any one time. Valid <attribute> values are listed below.
The textSize property determines the size of the font in an item of text, or text typed at an insertion point selected with the text tool. Object parts are listed in the following table:
Bitmap and field parts: label
DataSheet and pickList parts: colLabel, column (col)
Field chunks: char, item, line, word
With the exception of movies, if you do not specify a part, textSize will affect the entire object; however, setting textSize on a field, pickList, or dataSheet affects only the data contained in the object.
The font size is measured in pixels from the top of the tallest uppercase letter to the bottom of the longest lowercase descender.
The textSize can be any integer from 1 to 255, but the sizes installed and available in your computer's system produce the best results. The textSize property can be changed by using the set command and retrieved by using the get command.
Notes:
If you wish to change the textSize of a chunk of a field, the field's multiFont property must be set to true. You must also exactly specify the text whose size you wish to change:
set the textSize of char 5 to 10 of fld 2 to 18
If the multiFont property is not true then the preceding line sets the entire field to size 18.TAIL
PURE+TXT
Create a multifont field and name it "test". Type two words into the field and assign them different sizes using the "Size" option from the "Text" menu. Now, type the following into the Message Box and press Enter after each:
get the textSize of word 1 of fld "test"
set the textSize of word 2 of fld "test" to itTAIL
PURE+TXT
/data
Applies to bitmaps, buttons, datasheets, fields, groups, movies, picklists, shapes, the text tool (global painting)
PURE>LST
MOCELL10
MultiFont Propertyerty
TextColor Propertyerty
TextFont Propertyerty
TextHeight Propertyerty
TextStyle Propertyerty ADDD
Abs FunctionSCRP
on openCard
global gMediaTalkReference
set the cursor to watch
if gMediaTalkReference is "Functions" then
set the globalRowNum of this stack to 1
put "Functions" into bg fld "category"
put card fld "Functions" of card "data" into bg lst "list" of bg "topic background"
set the alpha of this stack to false
dehilite bg lst "list"
dehilite bg lst "category"
hilite row 5 of bg lst "category" of bg "topic background"
set the vertical scrollline of bg lst "list" to 1
hilite row 1 of bg lst "list"
end if
set the cursor to arrow
put empty into gMediaTalkReference
end openCard
popupnum
1bkgd
data
Abs FunctionTAIL
abs (<number>)
the abs of <number>ADDD
abs is a mathematical function that returns the absolute value of a number; that is, the displacement of a number from the origin, expressed as a positive number. The following list gives some examples:
Typing: abs (-1)
Return: 1
Typing: abs (1)
Returns: 1
Typing: abs (-2.3)
Returns: 2.3
Typing: abs (2.3)
Returns: 2.3TAIL
To put the absolute values of -5 and 5 into two variables and add them together, type the following statements into the Message Box and press Enter after each:
put abs (-5) into factor1
put abs (5) into factor2
put factor1 + factor2 into my_result
my_result
The result of these calculations (10) is displayed in the Message Box.TAIL
MOCELL10
There are no related topics
Disable CommandPROP
popupnum
39bkgd
data
Disable CommandTAIL
+T+TXT
For buttons, fields, dataSheets, and pickLists:
disable <button | field | pickList | dataSheet>ADDD
URE+TXT
The disable command sets the enable property of the target object to false. If enable is set to false, the object's text and icon are dimmed and no mouse-related messages are sent. If enable is set to true (the default), the object appears and responds normally.TAIL
PURE+TXT
Add the following handler to a button:
on mouseUp
disable me
answer "I have been disabled." with "OK"
end mouseUp
The button containing this script may be clicked only once. When clicked, it disables itself and displays a dialog box informing the user that the button has been disabled.TAIL
PURE+TXT
/data
Applies to buttons, datasheets, fields, picklists
PURE>LST
MOCELL10
Disable MenuItem Commandmand
Enable MenuItem Command
Enable Propertyerty
Lock Messages CommandPROP
popupnum
58bkgd
data
Lock Messages CommandTAIL
+T+TXT
lock messagesADDD
PURE+TXT
The lock messages command sets the lockMessages property to true.TAIL
PURE+TXT
The following handler uses the lock messages command in the script of a button to display every card in the stack without triggering any openCard or closeCard messages. The unlock messages command is used to resume the transmission of system messages. Try the handler without the lock messages command at the beginning to see the time difference.
on mouseUp
lock messages
repeat with i = 1 to the number of cards of this stack
go to next card
wait 2 seconds
end repeat
unlock messages
end mouseUpTAIL
PURE>LST
MOCELL10
LockMessages Propertyerty
Unlock Messages Commandmand
Read From File CommandPROP
popupnum
78bkgd
data
Read From File CommandTAIL
+T+TXT
read from file <filename> until <character>
read from file <filename> for <integer>ADDD
The read+TXT
The read from file command imports text or data handled as text from a text file until a specific character is located or until <integer> characters have been imported. The imported text is put into the variable it. Executing an open file command sets the read from file position to the beginning of the file. The read from file command reads the file until the end of file is reached.
If you execute several read from file commands, i.e.:
open file fname
read from file fname until return
then the the first read from file command reads the fist line of the file. The second read from file command reads the second line of the file.
Notes:
To read a line of a text file whose lines are delimited by carriage returns, use the following syntax:
read from file <filename> until return
To read a file until the end of file is reached, you can use the following syntax:
read from file fname until EOF
Note though that the read from file command will by default read until the end of the file.TAIL
a+TXT
This example reads an ASCII file called "Test". To try it, you must have an appropriate file available. Create a field named "File Info". Create a button named "Get Info" with the following script:
on mouseUp
ask file "Text file to open?" for open
with "Test.txt"
put it into fname
open file fname
read from file fname for 100
put it into fld "File Info"
close file fname
end mouseUp
Return to Browse mode and press the button. A dialog box appears, prompting you to specify the name of a file to open. The handler then opens the file, reads 100 characters from the file, and puts the text into the field "File Info".TAIL
CELL10>LST
MOCELL10
Write To File Commandmand
Open [<doc> with] <app>
Close File Commandmand
Commandtion> Command
Stop CommandPROP
popupnum
95bkgd
data
Stop CommandTAIL
+T+TXT
stop <movie | path | sound | timer>ADDD
For movi+TXT
For movies, the stop command halts the playback of a movie and blanks the movie image.
For paths, the stop command halts the currently executing animation. Animation cannot be resumed from this point, but must be restarted from the beginning.
For sounds, the stop command stops the playback of the sound.
For timers, the stop command stops the timer from going off by clearing the timer of all pending expiration times.TAIL
ate a+TXT
Create a movie object and associate a movie file with it. Now create a button and name it
Stop". Put the following handler into the script of the button:
on mouseUp
if the isPlaying of movie 1 is true then
stop movie 1
end if
end mouseUp
Create a button and name it "Play". Put the following handler into the script of the button:
on mouseUp
prepare mov 1
play mov 1
end mouseUp
Create a timer object and place the following handler into the script:
on timerExpired
beep
put
Wake Up!"
end timerExpired
Create a button
Starttimer" with the following handler:
on mouseDown
start timer 1 expire in 10 seconds
end mouseDown
Now, create a button
Stoptimer" and place the following handler into the script of the button:
on mouseDown
stop timer 1
end mouseDown
Applies +TXT
/data
Applies to movies, paths, sounds, timers
L10>LST
MOCELL10
EndPlay Commandand
Pause Commandand
Play File Command
PlayStopped Messageage
Start Commandmand
Messages Propertyertyy
Disable MenuItem CommandPROP
popupnum
40bkgd
data
Disable MenuItem CommandTAIL
+T+TXT
For menu items:
disable menuItem <item> of [menu
<submenu_name> of] menu <menu_name>
For menus:
disable menu <menu_name>ADDD
The disa+TXT
The disable menuItem command makes the specified menu item unselectable, or dimmed. If the target is a menu, the disable menuItem command disables every menu item and, on the Macintosh only, the menu itself. The disable menuItem command applies only to user-defined menus.
A menu item can be created disabled when setting the menuItems property. Place an open parenthesis before the name of the item to create it disabled.
You cannot modify anything on the existing File or Edit menus.TAIL
h+TXT
Enter the following statements in the Message Box and press Enter after each:
create menu "Colors"
add menuItem "Transparent" to "Colors"
To disable the menu item, type the following in the Message Box and press Enter:
disable menuItem "Transparent" of menu "Colors"TAIL
MOCELL10>LST
MOCELL10
Enable MenuItem Commandmand
Disable MenuItem Command
Enable Propertyerty
wINFO
Column Tabular ChunkPROP
popupnum
3bkgd
data
Column Tabular ChunkTAIL
++TXT
col[umn] <integer1> [to <integer2>]
{of | in} <pickList | dataSheet>
the <ordinal> col[umn] {of | in} <pickList | dataSheet>ADDD
The colu+TXT
The column chunk yields all of the values in a particular column or range of columns in a pickList or dataSheet. In the returned value, each row is delimited by returns; each column is delimited by tabs.
You can use the colDelim and rowDelim properties to specify the character to be used as a column or row delimiter, respectively, for data imported into a pickList or dataSheet.
Attention: You can use a combination of text and tabular chunk expressions to retrieve values, but not to insert values into containers. TAIL
+TXT
You can specify chunks of chunks:
row 1 of col 1 of pickList "Movies"
You can also specify ranges of chunks:
col 1 to 2 of pickList "Movies"
You can use text chunk expressions with tabular chunk expressions by enclosing the tabular chunk expression in parentheses, as in the following example:
put word 1 of (col 2 of pickList 3)TAIL
Applies +TXT
/data
Applies to datasheets, picklists
MOCELL10>LST
MOCELL10
Cell Tabular Chunkhunk
ColDelim Propertyerty
RowDelim Propertyerty
Row Tabular Chunkhunk
mINFO
Close File CommandPROP
popupnum
21bkgd
data
Close File CommandTAIL
+T+TXT
close file <filename>ADDD
The clos+TXT
The close file command closes a text file that was previously opened for reading or writing. The filename, including path, must be supplied if the file is in a different disk or directory than Oracle Media Objects. The filename must be same as the name you supplied with the open file command or you will receive a "file not open" error.TAIL
The foll+TXT
The following example opens a text file specified by the user, reads the first 100 characters of the file into a field, and closes the file again.
on mouseUp
ask "What file?"
put it into fname
open file fname
read from file fname for 100
put it into field "Text"
close file fname
end mouseUpTAIL
LL10>LST
MOCELL10
Read From File Commandmand
Write To File Commandmand
Open [<doc> with] <app> @
Commandtion> Command
AINFO
MultiFont PropertyPROP
popupnum
73bkgd
data
MultiFont PropertyTAIL
+T+TXT
set the multiFont of <field> to <boolean>ADDD
When set+TXT
When set to true, the multiFont property allows fields to contain multiple text fonts, colors, sizes, and styles.
Notes:
If a field's multiFont property is set to true, information about that field's text properties is stored only during the current session. Thus, if the multiFont property is set to false in a future session, the field will assume the default text characteristics of a newly created field.TAIL
a+TXT
Create a new field, name it
test" and type
The quick brown fox jumps over the lazy dog." in it. Select the word
jumps" and try to change its font from the Font submenu of the Text menu. Note that the font of the entire field changes. Try changing the word's color, size, and style; you should get similar results. Now enter the following line in the Message Box and press Return:
set the multiFont of fld "test" to true
Note that the contents of the field assume the font named in the field's textFont property. Try selecting text in the field and changing the font again. Do the same for other words or parts of words, and experiment with color, size, and style. Finally, enter the following line in the Message Box and press Return:
set the multiFont of fld "test" to false
All text in the field assumes the text properties that were current when the property was set to true.TAIL
+TXT
/data
Applies to fields
MOCELL10>LST
MOCELL10
There are no related topics
*INFO
MessageDropTime PropertyPROP
popupnum
70bkgd
data
MessageDropTime PropertyTAIL
+T+TXT
set the messageDropTime of <movie |
path | sound | timer> to <integer>ADDD
PURE+TXT
The messageDropTime allows you to specify the maximum acceptable latency for messages defined in the messages property. Any message which cannot be sent within the latency limit is discarded. This property takes a non
negative integer expressed in the time units specified with the units property.
The messageDropTime property only takes effect if the dropMessages property is true.
Notes:
For sounds, be careful about setting the messageDropTime property to unexpected values. If there is not a sound file associated with your sound object, you can still modify messageDropTime if the units property is set to milliseconds, ticks, or seconds. If the units property is set to samples, however, then you should not attempt to get or set the messageDropTime property. If you try to get or set messageDropTime in this situation while working in the authoring environment of Oracle Media Objects, then you will get an error message. If you attempt to modify messageDropTime under these circumstances while working in the runtime player, the default rate of 22KHz will be used to calculate the value of messageDropTime.TAIL
PURE+TXT
/data
Applies to movies, paths, sounds, timers
URE>LST
MOCELL10
DropMessages Propertyrty
Messages Propertyertyy
Units Propertyerty
Acceleration PropertySCRP
on openCard
global gMediaTalkReference
set the cursor to watch
if gMediaTalkReference is "Properties" then
set the globalRowNum of this stack to 1
put "Properties" into bg fld "category"
put card fld "properties" of card "data" into bg lst "list" of bg "topic background"
set the alpha of this stack to false
dehilite bg lst "list"
dehilite bg lst "category"
hilite row 3 of bg lst "category" of bg "topic background"
set the vertical scrollline of bg lst "list" to 1
hilite row 1 of bg lst "list"
end if
set the cursor to arrow
put empty into gMediaTalkReference
end openCard
popupnum
1bkgd
data
Acceleration PropertyTAIL
set the acceleration of [leg <number> of]
<path> to <x, y>ADDD
By default, an object maintains a constant speed for the duration of its trip down a path or a leg of a path. Using the acceleration property, you can specify the duration of the path during which an object accelerates and decelerates (or slows down).
The acceleration property requires two values, separated by a comma. The first value specifies the percent of the path duration during which the object accelerates; the second specifies the percent of path duration during which the object decelerates.
You can specify continual acceleration by setting the acceleration property to "100,0" so that the object accelerates for 100% of the path and decelerates for none of it; similarly, you can specify continual deceleration by setting the property to "0,100".
You can set the acceleration property for either an entire path or for each individual leg of a path. If you wish to set the acceleration property for each leg, you must set the playStyle property to useLegTiming to put your leg settings into effect.
Notes:
If you decide to set the acceleration property for each leg of a path, first add all the legs you want to include, and then set the playStyle property to a value of useLegTiming. This simultaneously updates the playDuration property of the path.TAIL
Create a shape and a path. Now create a button, name it
Mover", and place the following handler into the script of the button:
on mouseUp
animate shape 1 along path 1
end mouseUp
Type the following into the Message Box:
set the acceleration of path 1 to 100,0
Press the "Mover" button and observe the shape object move along the path you specified.
Now add a leg to your path by entering part mode and clicking the "add leg" tool; then set the playStyle property to useLegTiming by clicking on the "useLegTiming" tool, and type the following into the Message Box:
set the acceleration of leg 1 of path 1 to 100,0
set the acceleration of leg 2 of path 1 to 50,50
Click on the "Mover" button and watch your shape object move at different speeds along the two legs that now make up your path.TAIL
/data
Applies to paths, legs of paths
MOCELL10
Animate From Commandndand
PlayStyle Propertyrty
LockScreen PropertyPROP
popupnum
66bkgd
data
LockScreen PropertyTAIL
+T+TXT
set the lockScreen to <boolean>ADDD
URE+TXT
The lockScreen property controls how the screen is updated. When the lockScreen property is true, the image currently displayed on the screen is not modified until the screen is unlocked or the script currently being executed ends.
The lockScreen property is automatically set to false when an idle message is sent. Therefore this property can be changed only within the scope of a script.
You can use the lockScreen property to
Increase speed of execution (scripts run faster when the screen is locked)
Create visual effects for screen updating (see the unlock screen with visual effects command)
Make multiple changes to the display appear simultaneouslyTAIL
PURE+TXT
Create a bitmap named "test" and a button with the following script:
on mouseUp
set the lockScreen to true
hide bitmap "test"
wait 5 seconds
show bitmap "test"
set the lockScreen to false
end mouseUp
When you click on the button, the bitmap "test" does not disappear, because the screen was locked during the time the bitmap was hidden. Now return to the script and change the second line to read:
set the lockScreen to false
Return to Browse mode and click on the button. The bitmap "test" disappears for 5 seconds.TAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
Unlock Screen Commandndnd
Lock Screen Commandndnd
LockMessages PropertyPROP
popupnum
65bkgd
data
LockMessages PropertyTAIL
+T+TXT
set the lockMessages to <boolean>ADDD
E+TXT
The lockMessages property controls whether messages are sent or are prevented from being sent. You can lock the following system messages:
open
close
new
delete
When the lockMessages property is set to true, handlers are executed more quickly because the system messages just listed are not sent.
The lockMessages property is automatically set to false when an idle message is sent. Therefore this property can be changed only within the scope of a script.
PURE+TXT
The following handler uses the lockMessages property to retrieve the name of every card in the stack without triggering any openCard or closeCard messages.
on mouseUp
set the lockMessages to true
lock screen
repeat with i = 1 to the number of cards
of this stack
go to card i
put the short name of this card && return
after
field "card names" of card "Card with Names"
end repeat
go to card "Card with Names"
unlock screen
set the lockMessages to false
end mouseUpTAIL
PURE+TXT
/data
Applies to global
PURE>LST
MOCELL10
Lock Messages Commandndnd
Unlock Screen Commandndmand
End Control StatementSCRP
on openCard
global gMediaTalkReference
set the cursor to watch
if gMediaTalkReference is "Control Statements" then
set the globalRowNum of this stack to 1
put "Control Statements" into bg fld "category"
put card fld "Control Statements" of card "data" into bg lst "list" of bg "topic background"
set the alpha of this stack to false
dehilite bg lst "list"
dehilite bg lst "category"
hilite row 9 of bg lst "category" of bg "topic background"
set the vertical scrollline of bg lst "list" to 1
hilite row 1 of bg lst "list"
end if
set the cursor to arrow
put empty into gMediaTalkReference
end openCard
popupnum
1bkgd
data
End Control StatementTAIL
end <messageName>ADDD
The end keyword begins the last line of a handler. End is encountered when all of the handler's statements have been executed, except for any bypassed conditional blocks.
When the end statement is reached, the message that initiated execution of the handler is sent no further unless a pass <messageName> statement precedes the end statement. If the message that initiated this handler's execution was part of some other handler, control passes back to the calling handler.TAIL
The following handler can be put into the script of any object:
on mouseUp
beep 2
end mouseUpTAIL
MOCELL10
Repeat Control Statementment
Exit Control Statement
If Control Statementment
On Control Statementment
Pass Control Statement
UINFO
Cell Tabular ChunkSCRP
on openCard
global gMediaTalkReference
set the cursor to watch
if gMediaTalkReference is "Chunks" then
set the globalRowNum of this stack to 1
put "Chunks" into bg fld "category"
put card fld "Chunks" of card "data" into bg lst "list" of bg "topic background"
set the alpha of this stack to false
dehilite bg lst "list"
dehilite bg lst "category"
hilite row 7 of bg lst "category" of bg "topic background"
set the vertical scrollline of bg lst "list" to 1
hilite row 1 of bg lst "list"
end if
set the cursor to arrow
put empty into gMediaTalkReference
end openCard
popupnum
1bkgd
data
Cell Tabular ChunkTAIL
cell <row1>,<col1> [to <row2>,<col2>]
{of | in} <pickList | dataSheet>ADDD
The cell chunk yields the value in a particular cell or range of cells in a pickList or dataSheet. A cell is identified by a horizontal (column) and a vertical (row) component. In the returned value for a range of cells, each row is delimited by returns and each column is delimited by tabs.
Notes:
You can specify ranges of cells, as in the following example:
cell 1,2 to 1,18 of pickList "Movies"
You can use text chunk expressions with tabular chunk expressions by enclosing the tabular chunk expression in parentheses, as in the following example:
get char 1 to 5 of (cell 1,2 of pickList 3)
Attention: You can use a combination of text and tabular chunk expressions to retrieve values, but not to insert values into containers. TAIL
The following handler displays a dialog box prompting the user to enter data only if the user clicks the mouse in a cell. If the user clicks on a label, no dialog box is displayed. The handler must be entered into the script of a pickList or a dataSheet with its lockText property set to true.
on mouseUp rowNum, colNum
if rowNum > 0 and colNum > 0 then
ask "Please enter a value for cell" &&
rowNum & "," &
colNum with cell rowNum, colNum of me
put it into cell rowNum,colNum of me
end if
end mouseUpTAIL
/data
Applies to picklists, datasheets
MOCELL10
Column Tabular Chunkhunk
Row Tabular Chunkchunk
findSCRP
on idle
hide cd picklist "menu"
pass idle
end idle
on mouseup
if the style of cd btn "
" of cd "find" is default then
select char 1 of cd fld "inpicklist" of cd "find"
else
select after the last char of cd fld "searchstring" of cd "find"
end if
end mouseup
on opencard
select after the last char of cd fld "searchstring"
end opencard
on closecard
put empty into cd fld "searchstring"
put empty into cd lst "topics"
put row 1 of cd picklist "menu" into cd fld "findtype"
set the style of cd btn "
" to default
set the style of cd btn "
" to native
hide cd fld "itemsfound"
hide cd fld "itemsfound label"
disable cd btn "
end closecard
on findit
if cd fld "searchstring" is empty then
--answer "Please enter something to find." at the left of cd window + the width of cd window/10, the top of cd window
answer "
B" at the left of cd window + the width of cd window/10, the top of cd window
exit findit
end if
set cursor to watch
show cd pnt "working1"
show cd fld "itemsfound label"
put 0 into cd fld "itemsfound"
show cd fld "itemsfound"
put empty into cd lst "topics"
put empty into foundtopics
show cd pnt "working2"
send mouseup to cd button search of cd data
if the number of rows of cd dsht results of cd data > 0 then
put col 1 of cd dsht results of cd data into foundtopics
end if
if foundtopics is empty then
hide cd pnt "working2"
hide cd pnt "working1"
--answer "No topics were found." at the left of cd window + the width of cd window/10, the top of cd window
answer "
B" at the left of cd window + the width of cd window/10, the top of cd window
select char 1 to (the number of chars of cd fld "searchstring") of cd fld "searchstring"
else
put foundtopics into cd lst "topics"
put the number of rows of cd dsht results of cd data into cd fld "itemsfound"
set the style of cd btn "
" to default
hide cd pnt "working2"
set the style of cd btn "
" to native
select char 1 of cd fld "inpicklist"
hide cd pnt "working1"
end if
end findit
on displayit
if not (the windowtype contains "dialog") then
--answer "Please access this screen through the Find... button on the Topics screens."
answer "
exit displayit
end if
put the hilitedrows of cd lst "topics" into therow
if therow is empty then
--answer "Please select a topic." at the left of cd window + the width of cd window/10, the top of cd window
answer "
B" at the left of cd window + the width of cd window/10, the top of cd window
else
put row therow of cd lst "topics" into thetopic
if the last char of thetopic is return then delete the last char of thetopic
set cursor to watch
if thetopic is empty then exit displayit
if the first word of thetopic is "Repeat" or the last word of thetopic contains "statement" then
put "control statements" into temp
put "Control Statements" into bg fld "category" of bg "topic background"
put cd fld "control statements" of cd "data" into bg lst "list" of bg "topic background"
hilite row (the popupNum of card thetopic) of bg lst "list" of bg "topic background"
set the vertical scrollline of bg lst "list" of bg "topic background" to the popupNum of card thetopic
selectCategory temp
dismiss with thetopic
else if not (the last word of thetopic contains "Property") then
put the last word of thetopic & "s" into temp
put temp into bg fld "category" of bg "topic background"
put cd fld temp of cd "data" into bg lst "list" of bg "topic background"
hilite row (the popupNum of card thetopic) of bg lst "list" of bg "topic background"
set the vertical scrollline of bg lst "list" of bg "topic background" to the popupNum of card thetopic
selectCategory temp
dismiss with thetopic
else if the last word of thetopic contains "Property" then
put "Properties" into bg fld "category" of bg "topic background"
put cd fld "properties" of cd "data" into bg lst "list" of bg "topic background"
hilite row (the popupNum of card thetopic) of bg lst "list" of bg "topic background"
set the vertical scrollline of bg lst "list" of bg "topic background" to the popupNum of card thetopic
selectCategory temp
dismiss with thetopic
end if
end if
end displayit
on tabkey
--answer "yes"
answer "
end tabkey
prevcard
& Operatorcard
findtypedata
containsTAIL
containsSCRP
on mousedown
set the cursor to arrow
popupmenu cd picklist "menu" at the left of me, the top of me
if it is empty or it is zero then exit mousedown
put row it of cd picklist "menu" into cd fld "findtype"
put empty into cd lst "topics"
set the style of cd btn "find" to default
set the style of cd btn "display" to native
hide cd fld "itemsfound label"
hide cd fld "itemsfound"
select after the last char of cd fld "searchstring"
end mousedown
searchstringSCRP
on returninfield
set the hilite of cd btn "
" to true
enable cd btn "
wait 6 ticks
set the hilite of cd btn "
" to false
findit
disable cd btn "
end returninfield
on enterinfield
set the hilite of cd btn "
" to true
enable cd btn "
wait 6 ticks
set the hilite of cd btn "
" to false
findit
disable cd btn "
end enterinfield
on openfield
set the style of cd btn "
" to default
set the style of cd btn "
" to native
end openfield
on tabkey
select cd btn "
end tabkey
ZNAME
topicsSCRP
on doubleclick
if me is not empty then displayit
end doubleclick
on mousedown
if me is not empty then
set the style of cd btn "
" to default
set the style of cd btn "
" to native
select char 1 of cd fld "inpicklist"
end if
end mousedown
MOCELL10
menudata
MOCELL10
contains
starts with
ends with
is not
doesn
t contain
inpicklistSCRP
on returninfield
set the hilite of cd btn "
" to true
wait 6 ticks
set the hilite of cd btn "
" to false
displayit
end returninfield
on enterinfield
set the hilite of cd btn "
" to true
wait 6 ticks
set the hilite of cd btn "
" to false
displayit
end enterinfield
athowTAIL
itemsfound labeldata
Items Found:TAIL
itemsfounddata
8TAIL
working1data
ETAIL
working2data
dropdowndata
on mouseUp
enable cd button "
findit
disable cd button "
end mouseUp
on mouseUp
end mouseUp
on mouseUp
displayit
end mouseUp
on mouseUp
put the prevCard of this card into go_card
dismiss
end mouseUp
-- Media Talk Reference Library Stack
-- Oracle Media Objects
Version 1.0
-- Copyright
Oracle Corporation 1995
-- 6/28/95
-- okurose, 11/20/95
on libraryStack
if the name of the target is not the name of me then exit libraryStack
if exists(menu "
") then
add menuitem "-" to menu "
else
create menu "
end if
add menuItem "Media Talk Reference;
" to menu "
-- add menuItem "
" to menu "
add menuItem "
X" to menu "
add menu to menuItem "
" of menu "
set the menuItems of "
" of menu "
" to "Commands;Properties;Messages;Functions;Operators;Chunks;Containers;Control Statements"
setUpColors
end libraryStack
on doMenu theItem,theMenu
global gMediaTalkReference
if theMenu is not "
" then pass doMenu
if theItem is "
" then
launchUG
else if theItem is "
X" then
set the colorized of me to not (the colorized of me)
setUpColors
else if theItem is "Media Talk Reference" then
put theItem into gMediaTalkReference
invokeMTR
else if word 1 of theItem is "
" then
put word 2 of theItem into cat
if cat is "Control" then put "Control Statements" into cat
put cat into gMediaTalkReference
invokeMTR
else pass doMenu
end doMenu
on invokeMTR
global gMediaTalkReference
put the visible of the toolbar into toolbarVis
hide toolbar
put (the cursor) into cursorState
put (the selectedObject) into objectState
put (the editbkgnd) into bgState
set the cursor to arrow
disable menuItem "Media Talk Reference" of menu "
disable menuItem "
" of menu "
if gMediaTalkReference is "Media Talk Reference" then put "& Operator" into theCard
if gMediaTalkReference is "Commands" then put "Add Command" into theCard
if gMediaTalkReference is "Properties" then put "Acceleration property" into theCard
if gMediaTalkReference is "Messages" then put "ArrowKey Message" into theCard
if gMediaTalkReference is "Functions" then put "Abs Function" into theCard
if gMediaTalkReference is "Operators" then put "& Operator" into theCard
if gMediaTalkReference is "Chunks" then put "Cell Tabular Chunk" into theCard
if gMediaTalkReference is "Containers" then put "It Special Container" into theCard
if gMediaTalkReference is "Control Statements" then put "End Control Statement" into theCard
popup cd (theCard) of (the long name of me) titled "Media Talk Reference"
set the visible of the toolbar to toolbarVis
enable menuItem "Media Talk Reference" of menu "
enable menuItem "
" of menu "
set the cursor to cursorState
if not (objectState is empty) then select objectState
set the editbkgnd to bgState
end invokeMTR
on setUpColors
lock screen
if (the colorized of me) then
hide bg bitmap "bw" of background "topic background" of (the long name of me)
show bg bitmap "color" of bg "topic background" of (the long name of me)
check menuItem "
X" of menu "
set the backcolor of bg fld "notes" of bg "topic background" of (the long name of me) to 3
set the backcolor of bg lst "related" of bg "topic background" of (the long name of me) to 79
set the backcolor of bg lst "category" of bg "topic background" of (the long name of me) to 79
set the backcolor of bg lst "list" of bg "topic background" of (the long name of me) to 79
else
hide bg bitmap "color" of bg "topic background" of (the long name of me)
show bg bitmap "bw" of bg "topic background" of (the long name of me)
uncheck menuItem "
X" of menu "
set the backcolor of bg fld "notes" of bg "topic background" of (the long name of me) to 0
set the backcolor of bg lst "related" of bg "topic background" of (the long name of me) to 0
set the backcolor of bg lst "category" of bg "topic background" of (the long name of me) to 0
set the backcolor of bg lst "list" of bg "topic background" of (the long name of me) to 0
end if
unlock screen
end setUpColors
on launchUG
put the long name of me into enginePath
delete char 1 to 7 of enginePath
put offset(":",enginePath) into lastChar
put char 1 to lastChar of enginePath into enginePath
-- put "System Folder:Extensions:Microsoft:Help:" after enginePath
put "
_:Microsoft:Help:" after enginePath
if ("Microsoft Help" is not in the list of files in enginePath) then
if not (the helpEngine of me is empty) then
put the helpEngine of me into enginePath
put offset("Microsoft Help",enginePath) into temp1
delete char temp1 to (the number of chars of enginePath) of enginePath
end if
end if
if ("Microsoft Help" is not in the list of files in enginePath) then
--ask file "Please locate"&"e&"Microsoft Help""e&":" of type "APPL"
ask file """e&"Microsoft Help""e&"
:" of type "APPL"
put it into enginePath
set the helpEngine of me to it
if enginePath is empty then
exit launchUG
end if
else
put "Microsoft Help" after enginePath
end if
put OMOPath() into helpPath
if "OMO Help File" is not in the list of files in helpPath then
if not (the helpName of me is empty) then
put the helpName of me into helpPath
put offset("OMO Help File",helpPath) into temp1
delete char temp1 to (the number of chars of helpPath) of helpPath
end if
end if
if "OMO Help File" is not in the list of files in helpPath then
--ask file "Please locate"&"e&"OMO Help File""e&":" of type "HELP"
ask file """e&"OMO Help File""e&"
:" of type "HELP"
put it into helpPath
set the helpName of me to it
if helpPath is empty then
exit launchUG
end if
else
put "OMO Help File" after helpPath
end if
open (helpPath) with (enginePath)
end launchUG
on selectCategory categoryName
--This message handler is called only while the stack is popped up
dehilite bg lst "category" of bg "topic background" of (the long name of me)
if categoryName contains "Commands" then
hilite row 2 of bg lst "category" of bg "topic background" of (the long name of me)
put "Commands" into bg fld "category" of bg "topic background" of (the long name of me)
else if categoryName contains "Properties" then
hilite row 3 of bg lst "category" of bg "topic background" of (the long name of me)
put "Properties" into bg fld "category" of bg "topic background" of (the long name of me)
else if categoryName contains "Messages" then
put "Messages" into bg fld "category" of bg "topic background" of (the long name of me)
hilite row 4 of bg lst "category" of bg "topic background" of (the long name of me)
else if categoryName contains "Functions" then
put "Functions" into bg fld "category" of bg "topic background" of (the long name of me)
hilite row 5 of bg lst "category" of bg "topic background" of (the long name of me)
else if categoryName contains "Operators" then
put "Operators" into bg fld "category" of bg "topic background" of (the long name of me)
hilite row 6 of bg lst "category" of bg "topic background" of (the long name of me)
else if categoryName contains "Chunks" then
put "Chunks" into bg fld "category" of bg "topic background" of (the long name of me)
hilite row 7 of bg lst "category" of bg "topic background" of (the long name of me)
else if categoryName contains "Containers" then
put "Containers" into bg fld "category" of bg "topic background" of (the long name of me)
hilite row 8 of bg lst "category" of bg "topic background" of (the long name of me)
else if categoryName contains "Control" then
put "Control Statements" into bg fld "category" of bg "topic background" of (the long name of me)
hilite row 9 of bg lst "category" of bg "topic background" of (the long name of me)
end if
end selectCategory
alpha
true colorized
globalrownum
helpengine
helpname
theticks
PFONT
ACASLON ITALIC
ACASLON REGULAR
ACASLON SEMIBOLD
ACASLON SEMIBOLDITALIC
AGARAMOND
AGARAMOND BOLDp
AGARAMOND BOLDITALIC
AGARAMOND ITALIC
AMERICANAJ
ANNAQQ
APOLLO MT
APOLLO MT EXPERT
APOLLO MT ITALIC
APOLLO MT ITALICEXPERT
APOLLO MT ITALICOSF
APOLLO MT SC
APOLLO MT SEMIBOLD
APOLLO MT SEMIBOLDEXPERT+
APOLLO MT SEMIBOLDOSF
APPLE CHANCERY
ARIAL
ARIAL NARROW
ARIAL ROUNDED MT BOLD
ATHENS
AVANT GARDE
B AVANT GARDE DEMI,
B BOOKMAN DEMI
B COURIER BOLD
B FUTURA BOLD
B HELVETICA BOLD
B NEW CENTURY SCHLBK BOLDp
B ORCGARAM BOLD
B TIMES BOLD
BARMENO BOLD
BARMENO EXTRABOLD
BARMENO MEDIUM
BARMENO REGULAR
BASKERVILLE BE ITALICJ
BASKERVILLE BE MEDIUM
BASKERVILLE BE MEDIUMITALIC
BASKERVILLE BE REGULAR
BAUHAUS 93
BI AVANT GARDE DEMIOBLIQUE
BI BOOKMAN DEMIITALIC,
BI COURIER BOLDOBLIQUE
BI HELVETICA BOLDOBLIQUE
BI NEW CENTURY SCHLBK BOLDIT
BI TIMES BOLDITALIC
BLACKOAK
BO FUTURA BOLDOBLIQUE
BOOK ANTIQUA
BOOKMAN
BOOKMAN OLD STYLE
BOOKMAN OLD STYLE BOLD
BOTON ITALIC
BOTON MEDIUM
BOTON MEDIUMITALICp
BOTON REGULARJ
BOULEVARD
BRAGGADOCIO
BRITANNIC BOLD
BRUSH SCRIPT MT
C FUTURA CONDENSED
CAFLISCRMMSAM_280 LT
CAFLISCRMMSAM_406 RG
CAFLISCRMMSAM_556 SB
CAFLISCRMMSAM_640 BD+
CAIRO
CARTAJ
CB FUTURA CONDENSEDBOLD
CBO FUTURA CONDBOLDOBLIQUE,
CENTURY
CENTURY GOTHIC
CENTURY SCHOOLBOOK
CHICAGO
CL FUTURA CONDENSEDLIGHT,
CLO FUTURA CONDLIGHTOBLIQUE
CO FUTURA CONDENSEDOBLIQUE
COLONNA MT
COURIER
COURIER NEW
CXB FUTURA CONDEXTRABOLD,
CXBO FUTURA CONDEXTRABOLDOBLIQU
DECOLLAGE
DELTASYMBOL
DESDEMONA
ESPY SANSJ
ESPY SANS BOLD1
EWORLD TIGHT++
FOOTLIGHT MT LIGHT+
FORMATA ITALIC+
FORMATA MEDIUM
FORMATA MEDIUMITALIC
FORMATA REGULAR
FUTURAp
FUTURA BOOK
GENEVA
GIDDYUP
GIDDYUP THANGS
H FUTURA HEAVY
HELVETICA
HO FUTURA HEAVYOBLIQUE
HOEFLER TEXT
HOEFLER TEXT ORNAMENTS
I AVANT GARDE BOOKOBLIQUEJ
I BOOKMAN LIGHTITALIC
I COURIER OBLIQUE
I HELVETICA OBLIQUE
I NEW CENTURY SCHLBK ITALIC
I ORCGARAM LIGHTITALIC
I TIMES ITALIC
IMPACT
JAPANESE
KAUFMANN
KINO MT
L FUTURA LIGHT
LITHOS BLACK
LITHOS REGULAR
LO FUTURA LIGHTOBLIQUE
LONDON
LOS ANGELES
MATURA MT SCRIPT CAPITALSJ
MINIOMMSAM_367 RG 465 CN 11 OP
MINIOMMSAM_367 RG 585 NO 11 OP
MINIOMMSAM_367 RG 585 NO 72 OP
MINIOMMSAM_485 SB 465 CN 11 OP
MINIOMMSAM_485 SB 585 NO 11 OP
MINIOMMSAM_578 BD 465 CN 11 OP
MINIOMMSAM_578 BD 585 NO 11 OP
MISTRAL
MOBILE,
MONACO
MONOTYPE CORSIVA
MONOTYPE SORTS
MS LINEDRAW
MT EXTRA
N HELVETICA NARROW
NAGOYA
NB HELVETICA NARROW BOLD,
NBI HELVETICA NARROW BOLDOBL
NEW CENTURY SCHLBK
NEW YORK
NI HELVETICA NARROW OBLIQUE
O FUTURA BOOKOBLIQUE
O FUTURA OBLIQUE+
OCR-A
ORCGARAM
OSAKA
PALATINO+1+
PARISIAN
PARK AVENUE
PLAYBILL
POETICA SUPPORNAMENTSJ
POPPL-LAUDATIO BOLDCONDENSED
POPPL-LAUDATIO CONDENSED
POPPL-LAUDATIO ITALIC,
POPPL-LAUDATIO LIGHTCONDENSED
POPPL-LAUDATIO MEDIUM,
POPPL-LAUDATIO MEDIUMCONDENSED
POPPL-LAUDATIO MEDIUMITALIC
POPPL-LAUDATIO REGULAR
QUICKTYPE
QUICKTYPE CONDENSED
QUICKTYPE MONO
QUICKTYPE PI
SAN FRANCISCOJ
STENCIL
SYMBOL
TEKTOMM_100 LT 250 CNJ
TEKTOMM_100 LT 564 NO,
TEKTOMM_100 LT 850 EX
TEKTOMM_240 RG 250 CN
TEKTOMM_240 RG 564 NOJ
TEKTOMM_240 RG 850 EX
TEKTOMM_503 BD 250 CN
TEKTOMM_503 BD 488 NO
TEKTOMM_503 BD 850 EXJ
TEKTON
TEKTON BOLD
TEKTON PLUS REGULAR
TIMESJ
TIMES NEW ROMAN
TORONTO
TRAJAN BOLD
TTYFONT
VENICE
VIVALDI
VIVAMMSAM_250 LT 1500 XE
VIVAMMSAM_250 LT 400 CN
VIVAMMSAM_250 LT 600 NO
VIVAMMSAM_385 RG 1500 XE
VIVAMMSAM_385 RG 400 CN
VIVAMMSAM_385 RG 600 NO
VIVAMMSAM_700 BD 1500 XE+++
VIVAMMSAM_700 BD 400 CN
VIVAMMSAM_700 BD 600 NO
VT100
WIDE LATIN
WINGDINGS
WOODTYPE ORNAMENTS 2
XB AMERICANA EXTRABOLD
XB FUTURA EXTRABOLD
XBO FUTURA EXTRABOLDOBLIQUE
ZAPF CHANCERY++
ZAPF DINGBATSp
topic backgroundSCRP
on closecard
relatedvisible false
picklistvisible false
categoriesvisible false
select before char 1 of bg field "syntax"
select before char 1 of bg field "description"
select before char 1 of bg field "example"
oldcursor
end closecard
on openCard
if the alpha of this stack is false then set the globalRowNum of this stack to the popupNum of this card
select after the last char of bg fld "notes"
end openCard
on categoriesvisible showthem
set the visible of bg picklist "category" to showthem
if the colorized of this stack then
set the visible of bg bitmap "category" to showthem
else
set the visible of bg bitmap "categorybw" to showthem
end if
if the visible of bg bmp "categorybw" and the colorized of this stack then hide bg bmp "categorybw"
end categoriesvisible
on picklistvisible showthem
set the visible of bg picklist "list" to showthem
if the colorized of this stack then
set the visible of bg bitmap "list" to showthem
else
set the visible of bg bitmap "listbw" to showthem
end if
if showthem is false then select after the last char of bg fld "notes"
if the visible of bg bmp "listbw" and the colorized of this stack then hide bg bmp "listbw"
end picklistvisible
on relatedvisible showthem
set the visible of bg picklist "related" to showthem
if the colorized of this stack then
set the visible of bg bitmap "related" to showthem
else
set the visible of bg bitmap "relatedbw" to showthem
end if
if the visible of bg bmp "relatedbw" and the colorized of this stack then hide bg bmp "relatedbw"
end relatedvisible
on idle
if the visible of bg lst "list" then select after the last char of bg fld "keyfield"
if the theticks of this stack is not empty then
if the ticks - (the theticks of this stack) > 40 then
put empty into bg fld "keyfield"
set the theticks of this stack to empty
end if
end if
pass idle
end idle
on displaytopic rownum
if rownum is 0 or rownum is empty then exit displaytopic
set the cursor to watch
set the globalRowNum of this stack to rowNum
lock screen
put cell rownum,1 of background picklist "list" into theText
set the vertical scrollline of bg lst "list" to rownum
picklistvisible false
go card theText
hide bg btn "hide"
unlock screen
end displaytopic
on oldCursor
set the cursor to 0
end oldCursor
on newCursor
set the cursor to 1085
end newCursor
on seeCursor
set the cursor to 1410
end seeCursor
on cursorAppBusy
set the cursor to 1011
end cursorAppBusy
on CurLeft
set the cursor to 1084
end CurLeft
on curRight
set the cursor to 1085
end curRight
on arrowkey theKey
put theVisibleLists() into listName
if listName is empty then
pass arrowkey
exit arrowKey
else if (the hilitedRows of listName = 1 and thekey is up) then
pass arrowkey
exit arrowkey
else if (the hilitedRows of listName contains ",") then
pass arrowkey
exit arrowkey
end if
if thekey is down and the hilitedRows of ListName <= the number of rows of listName then
set the vertical scrollline of listName to (the hilitedRows of listName +1)
hilite row (the hilitedRows of listName + 1) of listName
else
set the vertical scrollline of listName to (the hilitedRows of listName -1)
hilite row (the hilitedRows of listName - 1) of listName
end if
end arrowkey
function theVisibleLists
if the visible of bg lst "list" then
return "bg lst " & quote & "list" & quote
else if the visible of bg lst "category" then
return "bg lst " & quote & "category" & quote
else if the visible of bg lst "related" then
return "bg lst " & quote & "related" & quote
else
return empty
end if
end thevisibleLists
%+BiO
=INFO
bwEXTI
&TAIL
0INFO
colorEXTI
ON+N+N
N+NO*
N+ON+O*
N+N+N
N*OO*
NO+N*O
NUN+O*
*+ONOO*
O*O**OO*
O*O*O+OO
ON+N+N
N+NO*
N+ON+O*
N+N+N
N*OO*
NO+N*O
NUN+O*
*+ONOO*
O*O**OO*
O*O*O+OO
ON+N+N
N+NO*
N+ON+O*
N+N+N
ONO+OO
*ONO*O+**
OO*O*
O*O*OO*
OON+*
O**ON+
NUN+O*
O*O**
*+NOOO+*
OOO*O*
NO++*
ON++N
ONO+OO
*ONO*O+**
OO*O*
O*O*OO*
OON+*
O**ON+
NUN+O*
O*O**
*+NOOO+*
OOO*O*
NO++*
ON++N
ONO+OO
*ONO*O+**
OO*O*
lllml
l>SS??S
lllll?
???S??S>lll
mllmml
lll?ll?
>lllSl?
lllmll
?S?
>lSlm
Sml?S
lllll
qqqqE
OOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOO
+++++
+++++++
OOOOOOO
OOOOOO
OOOOOOO
OOOOOO
++++++
OOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOO
N+N+*
2252522222222222H
2252522222222252H
+*O8c
OOOOOOOOOOOOOOOOOO
NO*+8c
N+ONN
OOOOOOOOOOOOOOOOOO
O*O*O
2222222222222222H
dddeE
O*OON
O+NO8c
O*O*O
eedeE
O+N+8c
ddedE
*NOO*
qqxx
eeeee
dddeE
O+N*wH
qqqqE
-:,343
223-,
-:,343
223-,
-:,343
223-,
-:,343
223-,
-:,343
223-,
-:,343
223-,
NOOO+N
N+ON+ON
NO+NO
**O+NO
OOO*O*O
N+NO*ON+O
NOO*O*OON
UOUO*
O+N*+
*O+*O
N+O*O+N*
zUNOOO*O*
NO+ON+N
OO*+N
O**N+*OON
O*+OON
*OOUO
UON**O
*ONO*N
NONNO+
N*OON
ONO+N
NOON+*
*+*O+NN**
NON+N+O+O+N*ON
ON+N+O
*O*OO
*O*O**+*
NO++N+O*N+N+OO
NO*ON
*+N+ON
+NOONNOO*ON
NN+O*OON+ON
N+N+O+N+
N+O*O*
O*ON*
NO++NOO
N+O*N+O*N*O+
*O+NOO*
OO+ON
*NO+NO+N
OON+N+N*O+**O
*OUOU
*O*+*+N
N*O**
NOOOOUO
N+N*OO
N+*ON+N*+*
yOUOUTOO
O*ON+N*
*ON*O*
NO+NO+O*O+N
OOTOOU*
ONOO*
NO*N+*O*O
*+OON
NO*O*NO
N*O*O*
NON+*
O*O**
O*+O*O*
N+NNON
NON+O
z$^z^^
7NO+N
eedeeed
ddddd
+O*O*
N+N++N
OOONO*
ONO*NO+ON
O+OONO*+N+N+O*
NO*+N
O*+ON
ON**O
N**++O*
O*O+*+NOO*OO*O*OO*
OOOOUNOOOO
O+N+O*
*+NON
OOO*O
*ONO*
N+ONO*O
OOOOONO*+O*ON+
ONO**
N+O*OO
NN+OO*O+N
N+NOOOUNOTOO*
NON+O
OO*N+
+*O*+O
*+NO*ON
O+*O*+N
NOOON
N+NOO+N
OO*O*O
+NO*+N*+ON+O+N
N+OUNUNOUOTO**
O*NO*O
NO**O
*+ONO
N+N+O*
*+*O**O
OOO*+NO*O
N+*O*N
O+O*O*N
O+O**OO*O
O*O*O
N+OOUOTOOUOO*
*+NON
*OO*+
,INFO
bwEXTI
notesEXTI
categoryEXTI
AlphabeticalTAIL
INFO
topic nameEXTI
syntaxEXTI
descriptionEXTI
exampleEXTI
/INFO
syntax headerEXTI
listEXTI
OOOO4
5OOOz
OOOO4
OOOO4
OOOO4
OOOO4
OOOO4
OOOO4
OOOO4
OOOO4
OOOO4
OOOO4
OOOO4
OOOO4
syntax headerEXTI
listSCRP
on mouseUp
if the visible of background bitmap "category" = true then
lock screen
hide background button "commands"
hide background button "functions"
hide background button "messages"
hide background button "properties"
hide background button "chunks"
hide background button "alphabetical"
hide background button "special characters"
hide background button "operators"
hide background bitmap "category"
end if
if the visible of background picklist "list" = true then
lock screen
hide background picklist "list"
hide background bitmap "list"
unlock screen
else
lock screen
show background button "hide"
show background picklist "list"
show background bitmap "list"
unlock screen
end if
end mouseUp
on mouseEnter
set the hilite of me to true
end mouseEnter
on mouseLeave
set the hilite of me to false
end mouseLeave
%INFO
globalRowNumEXTI
&INFO
printingEXTI
Topic is printing . . . TAIL
-INFO
ContainersSCRP
on mouseUp
set the cursor to watch
lock screen
hide background button "commands"
hide background button "functions"
hide background button "messages"
hide background button "properties"
hide background button "chunks"
hide background button "alphabetical"
hide background button "special characters"
hide background button "operators"
hide background bitmap "category"
hide background button "containers"
hide background button "hide"
put "Containers" into background field "category"
put card field "containers" of card "data" into background picklist "list" of background "topic background"
put row 1 of background picklist "list" into go_card
set the alpha of this stack to false
--***
delete the last char of go_card
put quote before char 1 of go_card
put quote after the last char of go_card
do "go card" && go_card
unlock screen
end mouseUp
<INFO
keyfieldSCRP
on keypressed thekey
set theticks of this stack to the ticks
put thekey after me
put the number of rows of bg lst "list" into numrows
if the number of chars of me is 1 then
repeat with i = 1 to numrows
put row i of bg lst "list" into therow
if char 1 of therow is char 1 of me then
setrow i
exit repeat
end if
end repeat
else
put the number of chars of me into numchars
put the hilitedrows of bg lst "list" into currentrow
put row currentrow of bg lst "list" into therow
repeat with i = 1 to numchars - 1
if char i of therow is not char i of me then exit keypressed
end repeat
repeat with i = currentrow to numrows
put row i of bg lst "list" into therow
if char 1 to numchars of therow is char 1 to numchars of me then
setrow i
exit repeat
end if
end repeat
end if
end keypressed
on enterinfield
displaytopic the hilitedrows of bg lst "list"
end enterinfield
on returninfield
displaytopic the hilitedrows of bg lst "list"
end returninfield
on setrow i
lock screen
set the hilite of bg lst "list" to false
set the hilite of row i of bg lst "list" to true
if the vertical scrollline of bg lst "list" < i - the visiblerows of bg lst "list" or
the vertical scrollline of bg lst "list" > i then set the vertical scrollline of bg lst "list" to i - 4
end setrow
categoryEXTI
EINFO
categorybwEXTI
HINFO
listbwEXTI
KINFO
relatedbwEXTI
IINFO
relatedEXTI
OOOO3
5OOOz
OOOO3
OOOO2
OOOO3
OOOO3
OOOO3
OOOO2
OOOO2
OOOO2
(INFO
hideSCRP
on mouseUp
categoriesvisible false
picklistvisible false
relatedvisible false
hide me
end mouseUp
relatedSCRP
on mouseup rownum
set the cursor to watch
lock screen
if rowNum is empty or rowNum is 0 then
relatedVisible false
hide bg btn "hide"
exit mouseUp
end if
put cell rownum,1 of me into selectionText
if selectionText contains "There are no related" then
relatedVisible false
hide bg btn "hide"
exit mouseUp
end if
lock screen
relatedvisible false
dehilite me
if selectionText is empty then exit mouseUp
if the first word of selectionText is "Repeat" or the last word of
selectionText contains "statement" then
put "control statements" into temp
put "Control Statements" into bg fld "category"
put cd fld "control statements" of cd "data" into bg lst "list"
go card selectionText
hilite row (the popupNum of this card) of bg lst "list"
set the vertical scrollline of bg lst "list" to the popupNum of this card
selectCategory temp
else if not (the last word of selectionText contains "Property") then
put the last word of selectionText & "s" into temp
put temp into bg fld "category"
put cd fld temp of cd "data" into bg lst "list"
go card selectionText
hilite row (the popupNum of this card) of bg lst "list"
set the vertical scrollline of bg lst "list" to the popupNum of this card
selectCategory temp
else if the last word of selectionText contains "Property" then
put "Properties" into bg fld "category"
put cd fld "properties" of cd "data" into bg lst "list"
go card selectionText
hilite row (the popupNum of this card) of bg lst "list"
set the vertical scrollline of bg lst "list" to the popupNum of this card
selectCategory temp
end if
hide bg btn "hide"
unlock screen
oldcursor
end mouseup
listSCRP
on mouseup rownum
set the cursor to watch
if rowNum is empty or rowNum is 0 then
picklistVisible false
hide bg btn "hide"
exit mouseUp
end if
set the globalRowNum of this stack to rowNum
lock screen
set the vertical scrollline of me to rownum
put cell rownum,1 of background picklist "list" into selectionText
picklistvisible false
go card selectionText
hide bg btn "hide"
unlock screen
end mouseup
MOCELL10
* (Multiplication) Operator
(Line Continuation Character)
ControllerVisible Property
Create Background Command
Exit Repeat Control Statement
Exit to Top Control Statement
Function Control Statement
Global Variables Property
Hide {screen element} Command
Message Box Special Container
MessageDropTime Property
Milliseconds (Msecs) Function
Next Repeat Control Statement
Open [<doc> with] <app> Command
ReverseOnReplay Property
Save [a] Copy as <filename> Command
Show {screen elements} Command
& Operator
+ (Plus) Operator
- (Minus) Operator
-- (Comment Symbol)
/ (Division) Operator
Abs Function
Acceleration Property
Add Command
Add Menu Command
Add MenuItem Command
Add Property Command
Advance Command
AnchorPoint Property
And Operator
Animate Along Command
Animate From Command
Annuity Function
Answer Command
ArrowKey Command
ArrowKey Message
Ask Command
Ask File Command
Ask Password Command
Atan Function
AutoFormat Property
AutoHilite Property
AutoResize Property
AutoSave Property
AutoTab Property
Average Function
BackColor Property
Backup Command
Beep Command
BkgndSize Property
BlindTyping Property
Blocking Property
Bottom Property
BottomRight Property
Breakpoint Command
Bring Closer Command
Brush Property
BufferSize Property
BusyCursor Property
CantDelete Property
CantModify Property
CantUnderstand Message
Cell Tabular Chunk
CenterPoint Property
Centered Property
CenteredWindow Property
CharToNum Function
Character Text Chunk
Check MenuItem Command
Choose Command
Class Name Property
Clear Command
Click At Command
ClickH Function
ClickLoc Function
ClickV Function
Close File Command
Close Printing Command
CloseBackground Message
CloseCard Message
CloseCell Message
CloseField Message
CloseStack Message
ColDelim Property
ColNames Property
ColResize Property
ColWidth Property
ColorDepth Property
Column Tabular Chunk
CommandKey Function
Compact Stack Command
Compound Function
Contains Operator
Contiguous Property
ControlPoint Property
Convert Command
Copy Command
Copy Card Command
Cos Function
Create Card Command
Create Command
Create Menu Command
Create Stack Command
Cursor Property
CurveType Property
Cut Command
DataScroll Property
Date Function
Dehilite Command
Delete <chunk> Command
Delete <object> Command
Delete Card Command
Delete Menu Command
Delete {row/col} Command
DeleteBackground Message
DeleteCard Message
DeleteObject Message
Disable Command
Disable MenuItem Command
DiskSpace Function
Dismiss Command
Div Operator
Divide Command
Do Command
DoMenu Message
DontPrint Property
DoubleClick Message
Drag Command
DropMessages Property
Duration Property
Edit Script Command
EditBkgnd Property
Enable Command
Enable MenuItem Command
Enable Property
End Control Statement
EndArrow Property
EndPlay Command
EndPoint Property
EndPoints Property
EndSize Property
EnterInField Message
EnterKey Message
Entries Property
Entry Chunk
Existence Function
Exit Control Statement
Exp Function
Exp1 Function
Exp2 Function
Filled Property
FlipInterval Property
ForeColor Property
FreeSize Property
FullScreen Property
FunctionKey Message
Get Command
Global Control Statement
Go Command
GridSize Property
HeapSpace Function
Height Property
Hide <object> Command
Hilite Command
Hilite Property
HiliteColor Property
HilitedRows Function
HyperText Message
ID Property
Icon Property
Idle Message
If Control Statement
Import Command
Info Property
InkColor Property
InkEffect Property
Insert Leg Command
Insert {row/col} Command
Is Not Operator
Is Operator
Is [Not] In Operator
IsPlaying Property
It Special Container
Item Text Chunk
KeyPressed Message
Left Property
Length Function
Libraries Function
Library Command
LibraryStack Message
Line Text Chunk
LinePattern Property
LineSize Property
List Function
Ln Function
Ln1 Function
Local Variables Property
Location (Loc) Property
Lock Messages Command
Lock Screen Command
LockMessages Property
LockScreen Property
LockText Property
Log2 Function
MatchedCols Function
MatchedRows Function
Max Function
Me Special Container
Member Chunk Expression
Members Property
MenuItems Property
Messages Property
Min Function
Mod Function
Mouse Function
MouseClick Function
MouseDown Message
MouseEnter Message
MouseH Function
MouseLeave Message
MouseLoc Function
MouseStillDown Message
MouseUp Message
MouseV Function
MouseWithin Message
MovieFile Property
MovieTypes Function
MultiFont Property
MultiHilite Property
Multiply Command
Name Property
NewBackground Message
NewCard Message
NewObject Message
NewStack Message
NoEvents Property
Not Operator
NumToChar Function
Number Function
Number Property
Offset Function
On Control Statement
Open File Command
Open Printing Command
OpenBackground Message
OpenCard Message
OpenCell Message
OpenField Message
OpenStack Message
OptionKey Function
Or Operator
OverLaid Property
Param Function
ParamCount Function
Params Function
Pass Control Statement
Paste Command
Paste Card Command
Pattern Property
Pause Command
Pick Command
Platform Function
Play Command
Play File Command
PlayCounter Property
PlayDirection Property
PlayDuration Property
PlayEffects Property
PlayForever Property
PlayList Property
PlayMode Property
PlayMuted Property
PlayNumber Property
PlayRate Property
PlayRepeated Message
PlayStart Property
PlayStarted Message
PlayStopped Message
PlayStyle Property
PlayVolume Property
Polysides Property
Pop Command
Popup Command
PopupMenu Command
Prepare Command
Print Card Command
Properties Property
Push Command
Put Command
Quit Command
Quit Message
Random Function
Read From File Command
Realize Command
Rectangle Property
Reference Property
Release Command
Release Library Command
ReleaseStack Message
Remove Property Command
Repeat Control Statement
Repeat Forever
Repeat Until
Repeat While
Repeat With
Reset Message Command
Return Control Statement
ReturnInField Message
ReturnKey Message
Right Property
Rotation Property
Round Function
Row Tabular Chunk
RowDelim Property
RowHeight Property
RulerStyle Property
ScaleToFit Property
Scaling Property
ScreenRect Function
Script Property
ScriptFont Property
ScriptSize Property
ScriptStyle Property
Scroll Command
Scroll Message
Scroll Property
ScrollBar Property
ScrollBars Property
ScrollFrame Property
ScrollLimit Property
ScrollLine Property
ScrollPosition Property
Scrolling Property
Seconds Function
Seek Command
Select Command
SelectedChunk Function
SelectedField Function
SelectedLine Function
SelectedObject Function
SelectedText Function
Selection Function
Send Farther Command
Set Command
SetRandomSeed Command
SetUpMenus Message
SharedData Property
ShiftKey Function
Show <object> Command
ShowLines Property
ShowName Property
ShowPict Property
Sin Function
Size Property
SizeBox Property
SnapToGrid Property
Sort Command
SoundFile Property
Sqrt Function
StackSpace Function
Start Command
StartArrow Property
StartPoint Property
StartSize Property
StartUp Message
Stop Command
StreamArrived Message
Style Property
Subtract Command
SystemColors Function
SystemVolume Property
TabKey Command
TabKey Message
Tan Function
Target Special Container
TextAlign Property
TextColor Property
TextFont Property
TextHeight Property
TextSize Property
TextStyle Property
This Special Container
Ticks Function
Time Function
TimerExpired Message
TitleBar Property
Tool Function
Top Property
TopLeft Property
Trace Command
Transparentize Command
Trunc Function
Type Command
Type Property
Uncheck MenuItem Command
Unhilite Command
UnitRate Property
Units Property
Unlock Messages Command
Unlock Screen Command
Untrace Command
UseLegScaling Property
UseLegTiming Property
Value Function
Version Function
Visible Property
VisibleCols Function
VisibleRows Function
Visual Effect Command
Wait Command
WideMargins Property
Width Property
WindowColor Property
WindowTitle Property
WindowType Property
Within Operator
Word Text Chunk
WordWrap Property
Write To File Command
8INFO
categorySCRP
on mouseUp rowNum
set the cursor to watch
lock screen
if rowNum is empty or rowNum is 0 then
categoriesVisible false
hide bg btn "hide"
exit mouseUp
end if
categoriesvisible false
put cell rowNum,1 of bg picklist "category" into selectionText
if selectionText contains "Alphabetical" then
set the alpha of this stack to true
put cd datasheet "alpha" of card "data" into bg picklist "list" of background "topic background"
else if selectionText is empty then
else
set the alpha of this stack to false
put cd fld selectionText of card "data" into bg picklist "list" of background "topic background"
end if
put selectionText into bg fld "category"
put cell 1,1 of bg picklist "list" into go_card
hide bg btn "hide"
go card go_card
hilite row 1 of bg picklist "list"
set the vertical scrollline of bg lst "list" to 1
unlock screen
end mouseUp
on donothing
end donothing
MOCELL10
Alphabetical
Commands
Properties
Messages
Functions
Operators
Chunks
Containers
Control Statements
Control Statements
LINFO
back oneSCRP
on mouseUp
put the globalRowNum of this stack into local
set the busycursor to watch
cursorAppBusy
set the hilite of me to false
if local > 1 then subtract 1 from local
else put the number of rows of bg picklist "list" into local
put cell local,1 of background picklist "list" of this card of this stack into chosenText
set the vertical scrollline of bg lst "list" to local
dehilite bg lst "list"
hilite row local of bg lst "list"
set the globalRowNum of this stack to local
go card chosenText
if not (the mouseloc is within the rect of me) then oldCursor
end mouseUp
on mouseenter
set the cursor to 1081
end mouseenter
on mouseleave
oldCursor
end mouseleave
MINFO
categorySCRP
on mouseUp
lock screen
set cursor to watch
categoriesvisible not the visible of bg picklist "category"
relatedvisible false
picklistvisible false
set the visible of bg btn "hide" to the visible of bg picklist "category"
set the highlight of me to false
end mouseUp
on mouseenter
seeCursor
end mouseEnter
on mouseLeave
oldCursor
end mouseLeave
NINFO
related buttonSCRP
on mouseup
lock screen
set cursor to watch
relatedvisible not the visible of bg picklist "related"
categoriesvisible false
picklistvisible false
set the visible of bg btn "hide" to the visible of bg picklist "related"
set the highlight of me to false
end mouseup
on mouseEnter
seeCursor
end mouseEnter
on mouseLeave
oldCursor
end mouseLeave
PINFO
listSCRP
on mouseUp
lock screen
set cursor to watch
picklistvisible not the visible of bg picklist "list"
categoriesvisible false
relatedvisible false
set the visible of bg btn "hide" to the visible of bg picklist "list"
set the highlight of me to false
put empty into bg fld "keyfield"
select after char 1 of bg fld "keyfield"
end mouseUp
on mouseEnter
seeCursor
end mouseEnter
on mouseLeave
oldCursor
end mouseLeave
QINFO
forward oneSCRP
on mouseUp
lock screen
put the globalRowNum of this stack into Local
set the cursor to watch
set the hilite of me to false
if local >= the number of rows of bg picklist "list" then put 0 into local
add 1 to local
put cell local,1 of background picklist "list" of this card of this stack into chosenText
set the vertical scrollline of bg lst "list" to local
dehilite bg lst "list"
hilite row local of bg lst "list"
set the globalRowNum of this stack to local
go card chosenText
if not (the mouseloc is within the rect of me) then oldCursor
unlock screen
end mouseUp
on mouseEnter
set the cursor to 1080
end mouseEnter
on mouseLeave
oldCursor
end mouseLeave
RINFO
printSCRP
on mouseUp
set the cursor to 1001
set the busycursor to busy
lock screen
put empty into cd fld "dsc" of cd "print topic"
push this card
put background field "topic name" into card field "topic name" of card "print topic"
put "Syntax:" & return & bg fld "syntax" & return & bg fld "syntax header" & return & "_______________________________________" after the last char of cd fld "dsc" of cd "print topic"
put return & "Description:" & return & bg fld "description" & return & "_______________________________________" after the last char of cd fld "dsc" of cd "print topic"
if not (bg fld "example" is empty) then put return & "Examples:" & return & bg fld "example" & return & "_______________________________________" after the last char of cd fld "dsc" of cd "print topic"
go card "print topic"
print card
put empty into cd fld "dsc" of cd "print topic"
pop card
unlock screen
oldcursor
end mouseUp
on mouseEnter
curLeft
end mouseEnter
on mouseLeave
oldCursor
end mouseLeave
SINFO
BackSCRP
on mouseUp
copy
end mouseUp
on mouseEnter
CurLeft
end mouseEnter
on mouseLeave
oldCursor
end mouseLeave
TINFO
BackSCRP
on mouseUp
if not (the selectedObject contains "bkgnd object id 14 of bkgnd id 13") then
select after the last char of bg fld "notes"
paste
else
paste
end if
end mouseUp
on mouseEnter
curLeft
end mouseEnter
on mouseLeave
oldCursor
end mouseLeave
UINFO
FindSCRP
on mouseUp
categoriesvisible false
relatedvisible false
picklistvisible false
popup card "find" titled "Find" at the left of cd window + the width of cd window/8, the top of cd window + the height of cd window/8 as moveabledialog
set the prevCard of cd "find" to the short name of this card
go card it
end mouseUp
on mouseEnter
curRight
end mouseEnter
on mouseLeave
oldCursor
end mouseLeave
VINFO
BackSCRP
on mouseUp
set the cursor to watch
lock screen
go back
repeat forever
if the short name of this card is "find" then
go back
go back
else if the short name of this card is "print topic" then
go back
go back
else
exit repeat
end if
end repeat
if the last word of the name of this card contains "Command" then
if not (line 1 of bg fld "category" contains "command") then
put cd fld "commands" of cd "data" into bg lst "list"
selectCategory "Commands"
end if
else if the last word of the name of this card contains "Property" then
if not (line 1 of bg fld "category" contains "Properties") then
put cd fld "properties" of cd "data" into bg lst "list"
selectCategory "Properties"
end if
else if the last word of the name of this card contains "Message" then
if not (line 1 of bg fld "category" contains "Messages") then
put cd fld "messages" of cd "data" into bg lst "list"
selectCategory "messages"
end if
else if the last word of the name of this card contains "Function" then
if not (line 1 of bg fld "category" contains "Functions") then
put cd fld "Functions" of cd "data" into bg lst "list"
selectCategory "Functions"
end if
else if the last word of the name of this card contains "Operator" then
if not (line 1 of bg fld "category" contains "Operators") then
put cd fld "Operators" of cd "data" into bg lst "list"
selectCategory "Operators"
end if
else if the last word of the name of this card contains "Chunk" then
if not (line 1 of bg fld "category" contains "Chunks") then
put cd fld "Chunks" of cd "data" into bg lst "list"
selectCategory "Chunks"
end if
else if the last word of the name of this card contains "Container" then
if not (line 1 of bg fld "category" contains "Containers") then
put cd fld "Containers" of cd "data" into bg lst "list"
selectCategory "Containers"
end if
else if the last word of the name of this card contains "Statement" then
if not (line 1 of bg fld "category" contains "Control Statements")S then
put cd fld "Control Statements" of cd "data" into bg lst "list"
selectCategory "Control Statements"
end if
end if
unlock screen
set the cursor to watch
end mouseUp
on mouseEnter
curRight
end mouseEnter
on mouseLeave
oldCursor
end mouseLeave
WINFO
BackSCRP
on mouseUp
categoriesvisible false
relatedvisible false
picklistvisible false
dismiss
end mouseUp
on mouseEnter
curRight
end mouseEnter
on mouseLeave
oldCursor
end mouseLeave
DataPROP
scriptelement
falsecard
button id 4SCRP
on mouseUp
set the rect of cd button 1 to 68,54,(338 / 10),(271 / 5)
end mouseUp
commandsdata
Add Command
Add Menu Command
Add MenuItem Command
Add Property Command
Advance Command
Animate Along Command
Animate From Command
Answer Command
ArrowKey Command
Ask Command
Ask File Command
Ask Password Command
Backup Command
Beep Command
Breakpoint Command
Bring Closer Command
Check MenuItem Command
Choose Command
Clear Command
Click At Command
Close File Command
Close Printing Command
Compact Stack Command
Convert Command
Copy Command
Copy Card Command
Create Background Command
Create Card Command
Create Command
Create Menu Command
Create Stack Command
Cut Command
Dehilite Command
Delete <chunk> Command
Delete <object> Command
Delete Card Command
Delete Menu Command
Delete {row/col} Command
Disable Command
Disable MenuItem Command
Dismiss Command
Divide Command
Do Command
Drag Command
Edit Script Command
Enable Command
Enable MenuItem Command
EndPlay Command
Get Command
Go Command
Hide <object> Command
Hide {screen element} Command
Hilite Command
Import Command
Insert Leg Command
Insert {row/col} Command
Library Command
Lock Messages Command
Lock Screen Command
Multiply Command
Open File Command
Open Printing Command
Open [<doc> with] <app> Command
Paste Command
Paste Card Command
Pause Command
Pick Command
Play Command
Play File Command
Pop Command
Popup Command
PopupMenu Command
Prepare Command
Print Card Command
Push Command
Put Command
Quit Command
Read From File Command
Realize Command
Release Command
Release Library Command
Remove Property Command
Reset Message Command
Save [a] Copy as <filename> Command
Scroll Command
Seek Command
Select Command
Send Farther Command
Set Command
SetRandomSeed Command
Show <object> Command
Show {screen elements} Command
Sort Command
Start Command
Stop Command
Subtract Command
TabKey Command
Trace Command
Transparentize Command
Type Command
Uncheck MenuItem Command
Unhilite Command
Unlock Messages Command
Unlock Screen Command
Untrace Command
Visual Effect Command
Wait Command
Write To File CommandTAIL
propertiesdata
Acceleration Property
AnchorPoint Property
AutoFormat Property
AutoHilite Property
AutoResize Property
AutoSave Property
AutoTab Property
BackColor Property
BkgndSize Property
BlindTyping Property
Blocking Property
Bottom Property
BottomRight Property
Brush Property
BufferSize Property
BusyCursor Property
CantDelete Property
CantModify Property
CenterPoint Property
Centered Property
CenteredWindow Property
Class Name Property
ColDelim Property
ColNames Property
ColResize Property
ColWidth Property
ColorDepth Property
Contiguous Property
ControlPoint Property
ControllerVisible Property
Cursor Property
CurveType Property
DataScroll Property
DontPrint Property
DropMessages Property
Duration Property
EditBkgnd Property
Enable Property
EndArrow Property
EndPoint Property
EndPoints Property
EndSize Property
Entries Property
Filled Property
FlipInterval Property
ForeColor Property
FreeSize Property
FullScreen Property
Global Variables Property
GridSize Property
Height Property
Hilite Property
HiliteColor Property
ID Property
Icon Property
Info Property
InkColor Property
InkEffect Property
IsPlaying Property
Left Property
LinePattern Property
LineSize Property
Local Variables Property
Location (Loc) Property
LockMessages Property
LockScreen Property
LockText Property
Members Property
MenuItems Property
MessageDropTime Property
Messages Property
MovieFile Property
MultiFont Property
MultiHilite Property
Name Property
NoEvents Property
Number Property
OverLaid Property
Pattern Property
PlayCounter Property
PlayDirection Property
PlayDuration Property
PlayEffects Property
PlayForever Property
PlayList Property
PlayMode Property
PlayMuted Property
PlayNumber Property
PlayRate Property
PlayStart Property
PlayStyle Property
PlayVolume Property
Polysides Property
Properties Property
Rectangle Property
Reference Property
ReverseOnReplay Property
Right Property
Rotation Property
RowDelim Property
RowHeight Property
RulerStyle Property
ScaleToFit Property
Scaling Property
Script Property
ScriptFont Property
ScriptSize Property
ScriptStyle Property
Scroll Property
ScrollBar Property
ScrollBars Property
ScrollFrame Property
ScrollLimit Property
ScrollLine Property
ScrollPosition Property
Scrolling Property
SharedData Property
ShowLines Property
ShowName Property
ShowPict Property
Size Property
SizeBox Property
SnapToGrid Property
SoundFile Property
StartArrow Property
StartPoint Property
StartSize Property
Style Property
SystemVolume Property
TextAlign Property
TextColor Property
TextFont Property
TextHeight Property
TextSize Property
TextStyle Property
TitleBar Property
Top Property
TopLeft Property
Type Property
UnitRate Property
Units Property
UseLegScaling Property
UseLegTiming Property
Visible Property
WideMargins Property
Width Property
WindowColor Property
WindowTitle Property
WindowType Property
WordWrap PropertyTAIL
INFO
messagesdata
ArrowKey Message
CantUnderstand Message
CloseBackground Message
CloseCard Message
CloseCell Message
CloseField Message
CloseStack Message
DeleteBackground Message
DeleteCard Message
DeleteObject Message
DoMenu Message
DoubleClick Message
EnterInField Message
EnterKey Message
FunctionKey Message
HyperText Message
Idle Message
KeyPressed Message
LibraryStack Message
MouseDown Message
MouseEnter Message
MouseLeave Message
MouseStillDown Message
MouseUp Message
MouseWithin Message
NewBackground Message
NewCard Message
NewObject Message
NewStack Message
OpenBackground Message
OpenCard Message
OpenCell Message
OpenField Message
OpenStack Message
PlayRepeated Message
PlayStarted Message
PlayStopped Message
Quit Message
ReleaseStack Message
ReturnInField Message
ReturnKey Message
Scroll Message
SetUpMenus Message
StartUp Message
StreamArrived Message
TabKey Message
TimerExpired MessageTAIL
functionsdata
Abs Function
Annuity Function
Atan Function
Average Function
CharToNum Function
ClickH Function
ClickLoc Function
ClickV Function
CommandKey Function
Compound Function
Cos Function
Date Function
DiskSpace Function
Existence Function
Exp Function
Exp1 Function
Exp2 Function
HeapSpace Function
HilitedRows Function
Length Function
Libraries Function
List Function
Ln Function
Ln1 Function
Log2 Function
MatchedCols Function
MatchedRows Function
Max Function
Milliseconds (Msecs) Function
Min Function
Mod Function
Mouse Function
MouseClick Function
MouseH Function
MouseLoc Function
MouseV Function
MovieTypes Function
NumToChar Function
Number Function
Offset Function
OptionKey Function
Param Function
ParamCount Function
Params Function
Platform Function
Random Function
Round Function
ScreenRect Function
Seconds Function
SelectedChunk Function
SelectedField Function
SelectedLine Function
SelectedObject Function
SelectedText Function
Selection Function
ShiftKey Function
Sin Function
Sqrt Function
StackSpace Function
SystemColors Function
Tan Function
Ticks Function
Time Function
Tool Function
Trunc Function
Value Function
Version Function
VisibleCols Function
VisibleRows FunctionTAIL
operatorsdata
& Operator
* (Multiplication) Operator
+ (Plus) Operator
- (Minus) Operator
/ (Division) Operator
And Operator
Contains Operator
Div Operator
Is Not Operator
Is Operator
Is [Not] In Operator
Not Operator
Or Operator
Within OperatorTAIL
Chunksdata
Cell Tabular Chunk
Character Text Chunk
Column Tabular Chunk
Entry Chunk
Item Text Chunk
Line Text Chunk
Member Chunk Expression
Row Tabular Chunk
Word Text ChunkTAIL
alphadata
MOCELL10
* (Multiplication) Operator
ControllerVisible Property
Create Background Command
Exit Repeat Control Statement
Exit to Top Control Statement
Function Control Statement
Global Variables Property
Hide {screen element} Command
MessageDropTime Property
Milliseconds (Msecs) Function
Next Repeat Control Statement
Open [<doc> with] <app> Command
ReverseOnReplay Property
Save [a] Copy as <filename> Command
Show {screen elements} Command
Message Box Special Containerr)
(Line Continuation Character)
& Operator
+ (Plus) Operator
- (Minus) Operator
-- (Comment Symbol)
/ (Division) Operator
Abs Function
Acceleration Property
Add Command
Add Menu Command
Add MenuItem Command
Add Property Command
Advance Command
AnchorPoint Property
And Operator
Animate Along Command
Animate From Command
Annuity Function
Answer Command
ArrowKey Command
ArrowKey Message
Ask Command
Ask File Command
Ask Password Command
Atan Function
AutoFormat Property
AutoHilite Property
AutoResize Property
AutoSave Property
AutoTab Property
Average Function
BackColor Property
Backup Command
Beep Command
BkgndSize Property
BlindTyping Property
Blocking Property
Bottom Property
BottomRight Property
Breakpoint Command
Bring Closer Command
Brush Property
BufferSize Property
BusyCursor Property
CantDelete Property
CantModify Property
CantUnderstand Message
Cell Tabular Chunk
CenterPoint Property
Centered Property
CenteredWindow Property
CharToNum Function
Character Text Chunk
Check MenuItem Command
Choose Command
Class Name Property
Clear Command
Click At Command
ClickH Function
ClickLoc Function
ClickV Function
Close File Command
Close Printing Command
CloseBackground Message
CloseCard Message
CloseCell Message
CloseField Message
CloseStack Message
ColDelim Property
ColNames Property
ColResize Property
ColWidth Property
ColorDepth Property
Column Tabular Chunk
CommandKey Function
Compact Stack Command
Compound Function
Contains Operator
Contiguous Property
ControlPoint Property
Convert Command
Copy Command
Copy Card Command
Cos Function
Create Card Command
Create Command
Create Menu Command
Create Stack Command
Cursor Property
CurveType Property
Cut Command
DataScroll Property
Date Function
Dehilite Command
Delete <chunk> Command
Delete <object> Command
Delete Card Command
Delete Menu Command
Delete {row/col} Command
DeleteBackground Message
DeleteCard Message
DeleteObject Message
Disable Command
Disable MenuItem Command
DiskSpace Function
Dismiss Command
Div Operator
Divide Command
Do Command
DoMenu Message
DontPrint Property
DoubleClick Message
Drag Command
DropMessages Property
Duration Property
Edit Script Command
EditBkgnd Property
Enable Command
Enable MenuItem Command
Enable Property
End Control Statement
EndArrow Property
EndPlay Command
EndPoint Property
EndPoints Property
EndSize Property
EnterInField Message
EnterKey Message
Entries Property
Entry Chunk
Existence Function
Exit Control Statement
Exp Function
Exp1 Function
Exp2 Function
Filled Property
FlipInterval Property
ForeColor Property
FreeSize Property
FullScreen Property
FunctionKey Message
Get Command
Global Control Statement
Go Command
GridSize Property
HeapSpace Function
Height Property
Hide <object> Command
Hilite Command
Hilite Property
HiliteColor Property
HilitedRows Function
HyperText Message
ID Property
Icon Property
Idle Message
If Control Statement
Import Command
Info Property
InkColor Property
InkEffect Property
Insert Leg Command
Insert {row/col} Command
Is Not Operator
Is Operator
Is [Not] In Operator
IsPlaying Property
It Special Container
Item Text Chunk
KeyPressed Message
Left Property
Length Function
Libraries Function
Library Command
LibraryStack Message
Line Text Chunk
LinePattern Property
LineSize Property
List Function
Ln Function
Ln1 Function
Local Variables Property
Location (Loc) Property
Lock Messages Command
Lock Screen Command
LockMessages Property
LockScreen Property
LockText Property
Log2 Function
MatchedCols Function
MatchedRows Function
Max Function
Me Special Container
Member Chunk Expression
Members Property
MenuItems Property
Messages Property
Min Function
Mod Function
Mouse Function
MouseClick Function
MouseDown Message
MouseEnter Message
MouseH Function
MouseLeave Message
MouseLoc Function
MouseStillDown Message
MouseUp Message
MouseV Function
MouseWithin Message
MovieFile Property
MovieTypes Function
MultiFont Property
MultiHilite Property
Multiply Command
Name Property
NewBackground Message
NewCard Message
NewObject Message
NewStack Message
NoEvents Property
Not Operator
NumToChar Function
Number Function
Number Property
Offset Function
On Control Statement
Open File Command
Open Printing Command
OpenBackground Message
OpenCard Message
OpenCell Message
OpenField Message
OpenStack Message
OptionKey Function
Or Operator
OverLaid Property
Param Function
ParamCount Function
Params Function
Pass Control Statement
Paste Command
Paste Card Command
Pattern Property
Pause Command
Pick Command
Platform Function
Play Command
Play File Command
PlayCounter Property
PlayDirection Property
PlayDuration Property
PlayEffects Property
PlayForever Property
PlayList Property
PlayMode Property
PlayMuted Property
PlayNumber Property
PlayRate Property
PlayRepeated Message
PlayStart Property
PlayStarted Message
PlayStopped Message
PlayStyle Property
PlayVolume Property
Polysides Property
Pop Command
Popup Command
PopupMenu Command
Prepare Command
Print Card Command
Properties Property
Push Command
Put Command
Quit Command
Quit Message
Random Function
Read From File Command
Realize Command
Rectangle Property
Reference Property
Release Command
Release Library Command
ReleaseStack Message
Remove Property Command
Repeat Control Statement
Repeat Forever
Repeat Until
Repeat While
Repeat With
Reset Message Command
Return Control Statement
ReturnInField Message
ReturnKey Message
Right Property
Rotation Property
Round Function
Row Tabular Chunk
RowDelim Property
RowHeight Property
RulerStyle Property
ScaleToFit Property
Scaling Property
ScreenRect Function
Script Property
ScriptFont Property
ScriptSize Property
ScriptStyle Property
Scroll Command
Scroll Message
Scroll Property
ScrollBar Property
ScrollBars Property
ScrollFrame Property
ScrollLimit Property
ScrollLine Property
ScrollPosition Property
Scrolling Property
Seconds Function
Seek Command
Select Command
SelectedChunk Function
SelectedField Function
SelectedLine Function
SelectedObject Function
SelectedText Function
Selection Function
Send Farther Command
Set Command
SetRandomSeed Command
SetUpMenus Message
SharedData Property
ShiftKey Function
Show <object> Command
ShowLines Property
ShowName Property
ShowPict Property
Sin Function
Size Property
SizeBox Property
SnapToGrid Property
Sort Command
SoundFile Property
Sqrt Function
StackSpace Function
Start Command
StartArrow Property
StartPoint Property
StartSize Property
StartUp Message
Stop Command
StreamArrived Message
Style Property
Subtract Command
SystemColors Function
SystemVolume Property
TabKey Command
TabKey Message
Tan Function
Target Special Container
TextAlign Property
TextColor Property
TextFont Property
TextHeight Property
TextSize Property
TextStyle Property
This Special Container
Ticks Function
Time Function
TimerExpired Message
TitleBar Property
Tool Function
Top Property
TopLeft Property
Trace Command
Transparentize Command
Trunc Function
Type Command
Type Property
Uncheck MenuItem Command
Unhilite Command
UnitRate Property
Units Property
Unlock Messages Command
Unlock Screen Command
Untrace Command
UseLegScaling Property
UseLegTiming Property
Value Function
Version Function
Visible Property
VisibleCols Function
VisibleRows Function
Visual Effect Command
Wait Command
WideMargins Property
Width Property
WindowColor Property
WindowTitle Property
WindowType Property
Within Operator
Word Text Chunk
WordWrap Property
Write To File Command
Special Charactersdata
-- (Comment Symbol)
(Line Continuation Character)TAIL
indexdata
MOCELL10
Operators & (text concatenation)
Text concatenation operator
& (text concatenation operator)
&& (text concatenation operator)
* (Multiplication) Operator
* (Multiplication) Operator
* (Multiplication) Operator
Scripting symbols line continuation character
(Line Continuation Character)
-(line continuation character)
(Line Continuation Character)
line continuation character
(Line Continuation Character)
Scripting symbols comment symbol
Calculations abs function
Animation acceleration property
Path manipulation acceleration property
Menu manipulation add menu command
Menu manipulation add menuItem command
Custom property manipulation add property command
Movie manipulation advance command
Movie manipulation slow motion
Path manipulation slow motion
Path manipulation anchorpoint property
Animation anchorpoint property
Path manipulation animate along command
Animation animate along command
decelerate modifier animate from command
accelerate modifier animate from command
natural modifier animate from command
Animation animate from command
Calculations annuity function
Dialog box creation answer command
Keystroke tracking arrowKey command
Keystroke tracking arrowKey message
Dialog box creation ask command
Dialog box creation ask file command
File manipulation ask file command
Dialog box creation ask password command
Protection ask password command
Calculations atan function
Formatting autoFormat property
Highlighting autoHilite property
Formatting autoResize property
Sizing autoResize property
Bitmap manipulation autoResize command
Movie manipulation autoResize command
Calculations average function
Graphics manipulation backColor property
Color manipulation backColor property
Movie manipulation backup command
Path manipulation backup command
Movie manipulation backward, playing movies
Path manipulation playing backward
Animation playing backward
Sound manipulation beep command
Sizing bkgndsize property
Message Box blindTyping property
playStyle property blocking
Sizing bottomRight command
Debugger commands breakPoint command
Object layer manipulation bring command
Graphics manipulation brush property
Cursor manipulation busyCursor property
Sound manipulation bufferSize property
Audio bufferSize property
Protection cantDelete property
Protection cantModify property
Tabular chunk expressions cell
Graphics manipulation centered property
Path manipulation centerPoint property
Animation centerPoint property
Properties centeredWindow
Display manipulation centeredWindow property
Text chunk expressions character
Chunk expressions character
Formatting charToNum function
Conversion charToNum function
ASCII values determining using charToNum
Menu manipulation check command
Graphics manipulation choose command
Object reference class name function
Editing Commands clear command
Menu Commands clear command
Mouse tracking click command
Mouse tracking clickH function
Mouse tracking clickLoc function
Mouse tracking clickV function
File manipulation close file command
Printing close printing command
DataSheet manipulation colDelim property
PickList manipulation colDelim property
DataSheet manipulation colNames property
PickList manipulation colNames property
Color manipulation colorDepth property
Protection colResize property
Sizing colResize property
Tabular chunk expressions column
DataSheet manipulation colWidth property
PickList manipulation colWidth property
Keystroke tracking commandKey function
Calculations compound function
Mathematical functions compound
Path manipulation contiguous property
Animation contiguous property
controllerVisible property
ControllerVisible Property
Properties controllerVisible
ControllerVisible Property
Movie manipulation controllerVisible property
ControllerVisible Property
Video controllerVisible property
ControllerVisible Property
Path manipulation controlPoint property
Animation controlPoint property
Editing Commands copy command
Menu Commands copy command
Editing Commands copy card command
Menu Commands copy card command
Mathematical functions cos
Calculations cos function
create background command
Create Background Command
Commands create background
Create Background Command
Menu Commands create background command
Create Background Command
Editing Commands create card command
Menu Commands create card command
Creation create menu command
Menu manipulation create menu command
Editing Commands create stack command
Menu Commands create stack command
Cursor manipulation cursor property
Path manipulation curveType property
Animation curveType property
Editing Commands cut command
Menu Commands cut command
DataSheet manipulation dataScroll property
PickList manipulation dataScroll property
date function abbreviated date
abbreviated date function
Functions abbreviated date
Date manipulation date function
Date manipulation abbreviated date function
Date manipulation long date function
Date manipulation short date function
Highlighting dehilite command
Editing Commands delete card command
Deletion delete card command
Menu Commands delete card command
Deletion delete chunk command
Menu manipulation delete menu command
Deletion delete menu command
Deletion delete object command
Deletion delete row/col command
deleteBackground message
Messages deleteBackground
Deletion deleteBackground message
Deletion deleteCard message
Deletion deleteObject message
Menu manipulation disable command
Commands disable menuItem
disable menuItem command
Menu manipulation disable menuItem command
Disk space diskSpace function
Dialog box creation dismiss command
Calculations div operator
Calculations divide command
Menu manipulation doMenu message
Printing dontPrint property
Protection dontPrint property
Mouse tracking doubleClick message
Movie manipulation dropMessages property
Sound manipulation dropMessages property
Timer manipulation dropMessages property
Path manipulation dropMessages property
Audio dropMessages property
Video dropMessages property
Animation dropMessages property
Movie manipulation duration property
Animation duration property
Path manipulation duration property
Formatting edit script command
Menu manipulation enable command
DataSheet manipulation enable property
PickList manipulation enable property
Menu manipulation enable menuitem command
Handler control end control statement
Handler control end control statement
Loops end control statement
if control statement end control statement
Shape manipulation endArrow property
Animation endPoint property
Path manipulation endPoint property
Shape manipulation endPoints property
Animation endSize property
Path manipulation endSize property
Keystroke tracking enterInField message
Keystroke tracking enterKey message
Palettes entries property
Palettes entry chunk expression
Object reference existence
Menu item reference exists
Handler control exit control statement
exit repeat control statement
Exit Repeat Control Statement
Control statements exit repeat
Exit Repeat Control Statement
Handler control exit repeat control statement
Exit Repeat Control Statement
Handler control exit to top control statement
Exit to Top Control Statement
exit to top control statement
Exit to Top Control Statement
Control statements exit to top
Exit to Top Control Statement
Calculations exp function
Mathematical functions exp
Mathematical functions exp1
Calculations exp1 function
Mathematical functions exp2
Calculations exp2 function
Graphics manipulation filled command
Path manipulation flipInterval
Graphics manipulation foreColor property
Bitmap manipulation foreColor property
Color manipulation foreColor property
Shape manipulation foreColor property
Disk space freesize property
Large view fullScreen property
Display control fullScreen property
Control statements function
Function Control Statement
function control statement
Function Control Statement
Handler control function control statement
Function Control Statement
Functions function handlers
Function Control Statement
Keystroke tracking functionKey message
Data manipulation get command
global control statement
Control statements global
Variables global control statement
Properties global variables
Global Variables Property
global variables property
Global Variables Property
Variables global variables property
Global Variables Property
Graphics manipulation gridSize property
Memory heapspace function
hide command, screen elements
Hide {screen element} Command
Commands hide, screen elements
Hide {screen element} Command
Highlighting hilite command
Highlighting hilite property
Highlighting hiliteColor property
Color manipulation hiliteColor property
Shape manipulation hiliteColor property
PickList manipulation hilitedRows function
Highlighting hilitedRows function
Graphics manipulation icon property
Handler control if control statement
Graphics manipulation import command
Sound manipulation import command
PickList manipulation import command
DataSheet manipulation import command
DataSheet manipulation import command
Field manipulation import command
Text manipulation import command
Importing text import command
Graphics manipulation inkColor property
Color manipulation inkColor property
Bitmap manipulation inkEffects property
Color manipulation inkEffects property
Path manipulation insert leg command
Animation insert leg command
Data manipulation insert command
DataSheet manipulation insert command
PickList manipulation insert command
Comparison operators is in
Comparison operators is not
Comparison operators is within
Comparison operators is not within
Sound manipulation isPlaying property
Movie manipulation isPlaying property
Path manipulation isPlaying property
Animation isPlaying property
Text chunk expressions item
Keystroke tracking keyPressed message
Validation length function
Library stack manipulation library command
Library stack manipulation libraries function
Library stack manipulation libraryStack message
Text chunk expressions line
Graphics manipulation linePattern property
Graphics manipulation lineSize property
Shape manipulation lineSize property
Object reference list function
Mathematical functions LN
Mathematical functions LN1
Calculations ln1 function
Properties local variables
local variables properties
Variables local variables property
Display control lock screen command
Display control lockScreen property
Field protection lockText property
DataSheet protection lockText property
Mathematical functions log2
Calculations log2 function
DataSheet manipulation matchedCols function
DataSheet manipulation matchedCols function
Mathematical functions max
Calculations max function
Groups member chunk expression
Menu manipulation menuItems property
messageDropTime property
MessageDropTime Property
Properties messageDropTime
MessageDropTime Property
Movie manipulation messageDropTime property
MessageDropTime Property
Timer manipulation messageDropTime property
MessageDropTime Property
Sound manipulation messageDropTime property
MessageDropTime Property
Path manipulation messageDropTime property
MessageDropTime Property
messageDropTime property
MessageDropTime Property
Video messageDropTime property
MessageDropTime Property
Audio messageDropTime property
MessageDropTime Property
Animation messageDropTime property
MessageDropTime Property
Movie manipulation messages property
Sound manipulation messages property
Path manipulation messages property
Timer manipulation messages property
Animation messages property
Milliseconds (Msecs) Function
Functions milliseconds or msecs
Milliseconds (Msecs) Function
Calculations milliseconds function
Milliseconds (Msecs) Function
Calculations min function
Mathematical functions min
Mathematical functions mod
Calculations mod function
Mouse tracking mouse function
Mouse tracking mouseClick function
Mouse tracking mouseDown message
Mouse tracking mouseEnter message
Mouse tracking mouseH function
Mouse tracking mouseLeave message
Mouse tracking mouseLoc function
Mouse tracking mouseStillDown message
Mouse tracking mouseUp message
Mouse tracking mouseV function
Mouse tracking mouseWithin message
movieFile property, linking movie files
Movie manipulation movieFile property
Linking movies movieFile property
QuickTime, supported movie format
Movies, supported formats movieTypes function
Video movieTypes function
Movie manipulation movieTypes function
Formatting multiFont property
Highlighting multiHilite property
PickList manipulation multiHilite property
Calculations multiply command
Object reference name property
DataSheet manipulation name property
PickList manipulation name property
name property the short name
name property the long name
Creation newBackground message
Creation newObject message
Creation newStack message
next repeat control statement
Next Repeat Control Statement
Control statements next repeat
Next Repeat Control Statement
Handler control next repeat control statement
Next Repeat Control Statement
repeat command next repeat
Next Repeat Control Statement
Next Repeat Control Statement
Loops next repeat command
Next Repeat Control Statement
Shape manipulation noEvents property
Highlighting not operator
Object reference number function
Chunk expressions number function
Object reference number property
Object layer manipulation number property
ASCII values determining using numToChar
Handler control on control statement
open document with application command
Open [<document> with] <application> Command
Commands open document with application
Open [<document> with] <application> Command
File manipulation open document with application command
Open [<document> with] <application> Command
Opening Documents open document with application command
Open [<document> with] <application> Command
Document Manipulation open document with application
Open [<document> with] <application> Command
open document with application command
Open [<doc> with] <app> Command
Commands open document with application
Open [<doc> with] <app> Command
File manipulation open document with application command
Open [<doc> with] <app> Command
Opening Documents open document with application command
Open [<doc> with] <app> Command
Document Manipulation open document with application